I have a problem: after the power button, it looks like it is on, but it is not available for click. (reloading the page fixes this problem, but I wonβt do it). First, in (document) .ready, I will disable this button.
To enable I do:
$("#submit_order").attr('disabled', false).removeClass( 'ui-state-disabled' );
to 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 pressed this button after turning on, the code above is not called.
justi source share