开发者

Selecting readOnly textboxes with JQuery

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜