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.
Written by Ivan Sim
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Jquery
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#