what would be your best way of verifying whether a user has filled in every the fields of your form… javascript or another script..
Appears like a very uncomplicated javascript function. Let me know if you want assistance with this.
yer in the event you wouldnt mind nocloset
Within your < form> tag, include an onsubmit attribute like this:
< variety onsubmit=" return validate(this); " >
Then you’ll want to write a verify function. The exact written content depends on what kind of validation you wish to perform, but here’s a good example that assumes you have a < input type=" text" name=" mytextbox" > somewhere within your form:
perform validate(myform)
in the event (myform. mytextbox. value == " " )
notify (" You must add a value with regard to mytextbox. " );
returning false;
returning true;
If you want something more stylish than this, maybe you can work together by email. Let me personally know.
just say we have these fields throughout my form
name
email
telephone
responses
may wanna add: mytextbox. focus();
once alert.
only small change.