validation error messages
Can anyone please point me in the right direction for the various methods of validation.
Currently I have a form that I validate using Javascript (see below). what I need is when the user submits if a field isnt entered then the whole row is highlighted
ALSO
An asterix placed inline at the end of the row (all in line with other rows)
Any othr techniques you know of.
Cheers
Darryl
<tr><td><a href="#" onclick="validateform();"><button>What's not completed</button></a></td></tr>
<tr id="1"><td width="30%" class="header">Firstname</td><td width="60%"><input type="text" name="firstName" id="firstName" size="50" value="Darryl"></td></tr>
<tr id="2"><td width="30%" class="header" id="tdSurname">Surname</td><td width="60%"><input type="text" name="surName" id="surName" size="50" value="Wilson"></td></tr>
<tr id="3"><td width="30%" class="header" id="tdDOB">DOB</td><td width="60%"><input type="text" name="dob" id="dob" size="20" ></td></tr>
<tr id="4"><td width="30%" class="header" name="tdGender">Gender</td><td width="60%" class="normal" name="tdGender">
<input type="radio" name="gender" value="M" checked> Male
<input type="radio" name="gender" value="F" > Female
<input type="radio" name="gender" value="U" > Undisclosed
</td></tr>