Thread
:
Required Form Fields
View Single Post
10-06-2012, 07:54 PM
PM User
|
#
2
xelawho
Senior Coder
Join Date: Nov 2010
Posts: 2,437
Thanks: 52
Thanked 454 Times in 452 Posts
give your form field (not just your form) an id, then use it:
Code:
if (document.getElementById("form_field_id").value=="")
although being that one blank space in your form field will satisfy that condition, it's hard to define it as "required"
xelawho
View Public Profile
Find More Posts by xelawho