I have a problem: after enable button, it look like enabled but isn't clickable. (reloading page fix this problem, but i won't do it). Firstly, on (document).ready, i disable this button.
For enable i do:
$("#submit_order").attr('disabled', false).removeClass( 'ui-state-disabled' );
for disable:
$("#submit_order").attr('disabled', true).addClass( 'ui-state-disabled' );
HTML code:
<button id="submit_order">Send an order</button>
button jQuery code:
$( "#submit_order" )
.button()
.click(function() {
$( "#dialog-form" ).dialog( "open" );
});
When i clicked this button after enabling, code above didn't invoke.