开发者

jQuery Select all Disabled texboxes

开发者 https://www.devze.com 2022-12-11 19:45 出处:网络
I\'d like to select ALL of the disabled textboxes and add a Class to them, how do I do thi开发者_如何学编程s in jQuery$(\'input[type=textbox]:disabled\').addClass(\'myClass\');

I'd like to select ALL of the disabled textboxes and add a Class to them, how do I do thi开发者_如何学编程s in jQuery


$('input[type=textbox]:disabled').addClass('myClass');
0

精彩评论

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