|
-
Jun 25th, 2005, 12:54 PM
#1
Thread Starter
Addicted Member
Javascript check if empty problem
Hey,
I have a textfield and a textarea. Now, i want to check if either of the textboxes are empty when the user submits the form. I've already added a script that checks the boxes when the user 'clicks' the submit button and if one of the textboxes is empty will display an error. BUT... if the user has entered text in the first box (the textfield) and presses enter without giving the second box (the textarea) focus, the form will submit successfully :-S Even though the textarea is empty.
Anyone help me in solving this problem Just ask if you need more explanation :-D
Thanks, BIOSTALL
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|