jquery - How can I disable the DefaultButton of an asp:Panel at ClientSide?
this question asked Aug 3 '11 at 12:18 teenup 2,905 6 41 92
| 2 Answers
up vote 1 down vote ---Accepted---Accepted---Accepted---
You can remove that attribute using jQuery by doing something like: $("#Panel1").removeAttr("onkeypress");
(Assuming the ClientID of your Panel is Panel1). Hope that is of some help!
this answer answered Aug 3 '11 at 12:46 Dan Diplo 20.5k 3 41 72 I already solved the problem before I looked up this solution, through some alternate way, but this is the exact answer of my question. Therefore +1 and ---Accepted---Accepted---Accepted---
as answer. – teenup Aug 3 '11 at 17:48 this did not work in my case. – Nathan Tregillus Jun 18 '13 at 23:40
this answer answered Aug 3 '11 at 12:31 Mantorok 2,490 2 15 26
- 3MVC学习笔记之：ASP.NET MVC的客户端验证-jQuery.validate验证结合Model验证中的实现
- 4asp.net MVC3 + JQuery 的ajax简单使用
- 5JQuery插件中的treeview与asp.net mvc的结合使用实例(转)-附加自己的写法