Menu
Hi
the below code if a field on a form. I have been displaying a message at the top of the page to display validation errors, however I would like to change it so that the text next to the field will turn red. any idea how to fix the below code to do this
thank you
[code=php]
<tr>
<td style=”width:25%;” class=”tableRowBottomBorder”><span style=”width:25%;”><label for = “name” <?php if(!$given_to){ echo ‘class=”warning”‘; } ?>>Given To:</label></span></td>
<td style=”width:75%;” class=”tableRowBottomBorder tableLeftBorder” ><label>
<input type=”text” name=”givenTo” id=”givenTo” />
</label></td>
</tr>