So you want to call Js on Keypress event of this textbox instead of Cute Editor.
Please check this example.
- <html>
- <body>
- <script type="text/javascript">
- function noNumbers(e)
- {
- var keynum;
- var keychar;
- var numcheck;
-
- if(window.event) // IE
- {
- keynum = e.keyCode;
- }
- else if(e.which) // Netscape/Firefox/Opera
- {
- keynum = e.which;
- }
- keychar = String.fromCharCode(keynum);
- numcheck = /\d/;
- return !numcheck.test(keychar);
- }
- </script>
-
- <form>
- <input type="text" onkeypress="return noNumbers(event)" />
-
- <textarea id="txt1" onkeypress="return noNumbers(event)">
- Hello world....This is a text area
- </textarea>
-
- </form>
-
- </body>
- </html>
asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
asp wysiwyg html editor: http://cutesoft.net/ASP
asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
Live Support: http://cutesoft.net/live-support/default.aspx