View Full Version : form validation with jquery

01-28-2012, 02:12 PM
hi guys i am trying to get some javascript to check if all inputs are filled in here is my form

<legend><a id="myHeader1" href="javascript:showonlyone('newboxes1');" >
<fieldset style="width:250px;">Who and Where?</a></legend>
<div name="newboxes" id="newboxes1" style="display: none;">

<form name="vrv" method="post" action="vevx.php">

<fieldset style="width:210px;">
<legend>Engineers Name:-</legend>
<input name="engineer" type="text" class="text"/>
<fieldset style="width:210px;">
<legend>Site Address:-</legend>
<textarea rows="6" cols="15" name="site" /></textarea>


i have 5 forms on the same page but only one submit button. Each form is hidden till href="javascript:showonlyone('newboxes1');" i want to put a tick or word next to the Who and Where?(title) to indicate this form has a entry in each field

PS I dont understand javascript at all so PLEASE keep it simple

01-29-2012, 05:17 PM
take a look at this http://bit.ly/AuZSwb

01-29-2012, 10:24 PM
This is great thanks but too complicated if i have say 5 fields once all fields have something in them it will say complete without having to click submit

01-29-2012, 10:36 PM
try using the script here.