I'm disabling a button with jQuery. It does work, but there is a strange behavior in Chrome. If I click on the button, it remains with the not-disabled color:
Only if I click again, or if I move the mouse (at least 1 px), the button is displayed as disabled:
Here's my code:
<button id="reset" type="button">Reset</button>
$('#reset').click(function(){
$(this).attr('disabled',true);
});
For some reason, it does work fine on the demo: http://jsfiddle.net/hjqk00j4/
In my localhost version, I tried stripping parts of the page, js chunks, css parts, etc, but it still won't display the disabled version of the button unless I click again on it. Any ideas?