[eluser]term25[/eluser]
I would like to change a class of the input element (e.g. in css style sheet then I can add border 1px solid red for input element etc.), when there is a validation error. How to achieve this? I have not found any solution for CodeIgniter yet. Thanks in advance.
Example of my code:
Code:
<tr>
<td>
Title
</td>
<td>
<?php echo form_input('title', set_value('title'), "class = 'title'"); ?>
<?php echo form_error('title', '<span class="error">', '</span>'); ?>
</td>
</tr>