开发者

Dissable buttonset on click

开发者 https://www.devze.com 2023-03-26 04:15 出处:网络
I would like to disable a complete buttonset on button click using jquery Until now I have the following code:

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

精彩评论

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