$options = array(
'small' => 'Small Shirt',
'med' => 'Medium Shirt',
'large' => 'Large Shirt',
'xlarge' => 'Extra Large Shirt',
); echo form_dropdown('some_name', $options, ' ' ,'id='some_id');
Now i want to hide this listbox .. How do i do this??
Hide? you mean with javascript? You’re not very clear in your question, so if I misunderstood just let know
Hiding:
Using jQuery:
Or with CSS:
Note that as forth parameter to the form_dropdown() you pass a string, so you could give it an id, a class, an onlick event, whatever. So, you can give it a
'class="invisible" id="some_id" onclick="myfunction"'and manage it’s visibility with that.