Wrap disabled <input>
in <div>
and catch click
event on <div>
instead of <input>
directly
<div class="disabled">
<input type="text" disabled/>
</div>
$('.disabled').click(function(e){});
// $('[disabled]').click(function(e){}); // not working
The solution is not working with <select>
and <input type="file">
. I tried to using <fieldset disabled>
wrap <select>
but it is working too