Simranjit Singh Simranjit Singh - 4 months ago 13
jQuery Question

jQuery click event on disabled input field

I want to trigger an event on input field but i need to make is disable. I have tried the following code, but it couldn't work for me.

$(document).on('click', '.select-row', function(e){
...
});


Thanks in advance.

Answer

If you need to trigger, use trigger() function.

$('.select-row').trigger('click');