JSFiddle - React, Tailwind, and code Playground
by davestein
HTML
This is a demo in 1.6.2 and shows that behavior works properly for bind.
<select id="myselect">
<option value="">Foo</option>
</select>
<div>
<input type="button" value="enable" />
<input type="button" value="disable" />
</div>
JavaScript
$('#myselect').bind('disable enable', function( e ) {
$('body').append( 'Live change state: ' + e.type + '<br />');
});
$('input[type=button]').bind( 'click', function(e) {
var disabled = true;
if ( this.value == 'enable' ) {
disabled = false;
}
$('#myselect').attr( 'disabled', disabled ).trigger( this.value );
});