Welcome Guest, Not a member yet? Register   Sign In
adding class to input errors
#1

[eluser]karloff[/eluser]
Just wondering on what is the the best CI wy to add a class to an input which has not validated?

in my view i have this
Code:
$client_name = array(
    'name'    => 'client_name',
    'id'    => 'client_name',
    'size'    => 20,
    'value' => set_value('client_name')
);

etc.......


<dt>&lt;?php echo form_label('Client name', $client_name['id']);?&gt;</dt>
    <dd>
        &lt;?php echo form_input($client_name);?&gt;
        &lt;?php echo form_error($client_name['name']); ?&gt;
    </dd>

etc.......

I kno how to add the class with a basic input, however what would the magical line in the CI fashion be?
#2

[eluser]TheFuzzy0ne[/eluser]
This thread might help you: http://ellislab.com/forums/viewthread/108886/
#3

[eluser]karloff[/eluser]
sorted man, cheers




Theme © iAndrew 2016 - Forum software by © MyBB