Dissable buttonset on click
I would like to disable a complete buttonset on button click using jquery
Until now I have the following code:
http://js开发者_开发问答fiddle.net/ntenisOT/5Hvvn/
Thanks
$(function() {
$("#radio").buttonset();
$("#disable").click(function(e){
e.preventDefault();
$("#radio").buttonset( "option", "disabled", true );
});
$("#enable").click(function(e){
e.preventDefault();
$("#radio").buttonset( "option", "disabled", false);
});
});
http://jsfiddle.net/5Hvvn/5/
精彩评论