Welcome Guest, Not a member yet? Register   Sign In
Setting additional parameters on form_dropdown
#1

[eluser]Chris Williams[/eluser]
For a label to work when clicked, the field needs an ID. Also, I'd like to set a required param to this. How do I do this?

Code:
<label for="billing_state">State:</label>
      &lt;?php echo form_dropdown('billing_state',$options,set_value('billing_state',$billing_state)); ?&gt;
#2

[eluser]Chris Williams[/eluser]
Found it, never mind. :-)

Code:
&lt;?php echo form_dropdown('billing_state',$options,set_value('billing_state',$billing_state), 'id="billing_state"'); ?&gt;




Theme © iAndrew 2016 - Forum software by © MyBB