开发者

Selecting readOnly textboxes with JQuery

开发者 https://www.devze.com 2023-01-09 23:05 出处:网络
In my ASP.NET MVC project i need to select all text boxes that have attributed \"readOnly\" in curre开发者_如何学Cnt page and show modal Jquery dialog in keypress on the disabled text box.Any help app

In my ASP.NET MVC project i need to select all text boxes that have attributed "readOnly" in curre开发者_如何学Cnt page and show modal Jquery dialog in keypress on the disabled text box.Any help appreciated.


Have you tried anything yet?..

Just to select the elements and apply a method to the keypress you could do the following:

$(":text[readonly]").keypress(function() { /*do your magic*/ });
0

精彩评论

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

关注公众号