jQuery to disable button not work

后端 未结 3 549
走了就别回头了
走了就别回头了 2021-01-03 23:00

I used to bind event to my button like :

$(\"input[name=add]\").live(\"click\",function(){...});

But I got another function to make them \"

3条回答
  •  一整个雨季
    2021-01-03 23:31

    You can set the 'disabled' attribute to false by using:

    $("input[name='add']").attr("disabled","disabled");
    

提交回复
热议问题