How can I set the default for a Dropdown (created using the Form Helper) by using the Form_validatio

Posted by Shamoon on Stack Overflow See other posts from Stack Overflow or by Shamoon
Published on 2010-06-15T15:39:35Z Indexed on 2010/06/15 15:42 UTC
Read the original article Hit count: 144

In my view, I have:

$form_prop = 'class="inp_step" id="bedrooms"';
echo form_dropdown( "bedrooms", array( null, 0,1,2,3,4,5,6,7,8,9,10), null, $form_prop );

So how do I stick a

<?php echo $this->validation->set_select('myselect', 'one'); ?>

in there?

© Stack Overflow or respective owner

Related posts about codeigniter

Related posts about form-validation