Results 1 to 2 of 2
Thread: Javascript and enter button
- 06-11-2007, 09:12 PM #1
Senior Member
- Join Date
- Jun 2007
- Posts
- 111
- Rep Power
- 0
- 06-11-2007, 09:39 PM #2
Member
- Join Date
- Jun 2007
- Posts
- 91
- Rep Power
- 0
RE: Javascript and enter button
The form has an event "onsubmit" (like the input that have onclick), the idea would be that event calls your validation function.
Check this, I think that it is the solution
Java Code:<script language="Javascript" type="text/javascript"> function validateForm(){ ... } </script> <form method="post" name="createform" onsubmit="validateForm()"> ... </form>
Similar Threads
-
How do check I allow user to enter only alpha numeric and -?
By tanalyw in forum New To JavaReplies: 2Last Post: 04-16-2008, 12:18 PM -
Applet - enter URL and view the page
By Java Tip in forum Java TipReplies: 0Last Post: 03-10-2008, 02:38 PM -
Reading Char without needing to press enter
By x0psci in forum New To JavaReplies: 0Last Post: 11-23-2007, 04:28 PM -
enter data from an optic device
By bbq in forum Advanced JavaReplies: 2Last Post: 07-04-2007, 08:02 AM -
Jsp and javascript
By Ed in forum JavaServer Pages (JSP) and JSTLReplies: 2Last Post: 07-04-2007, 04:54 AM
Bookmarks