rwxkla
Last Updated: February 25, 2016
·
1.275K
· ihcsim
130921 tcl 103 s

Disable jquery-ui Buttons

To disable a jquery-ui button created via $.button use either

$( ".selector" ).button({ disabled: true });

Or

$( ".selector" ).button( "option", "disabled", true );

As

$( ".selector" ).attr("disabled", "disabled");

Won't work.

Reference: http://api.jqueryui.com/button/#option-disabled

Say Thanks
Respond