View Single Post
Old 10-06-2012, 07:54 PM   PM User | #2
xelawho
Senior Coder

 
xelawho's Avatar
 
Join Date: Nov 2010
Posts: 2,437
Thanks: 52
Thanked 454 Times in 452 Posts
xelawho will become famous soon enoughxelawho will become famous soon enough
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 is offline   Reply With Quote