开发者

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/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜