CodeIgniter Forums

Full Version: [solved] add more info to form dropdown
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]pabloheim[/eluser]
hi, ive been searching how to pass id or class to form_dropdown.

as seen the user guide , first parameter represents the name of the dropdown, and in the second, the corresponding array with the option list.

is there any way to add, for example an id or a class ?

i tried passing an array(which contains name, id and class) as first parameter, but it didnt work.

an easy solution could be to not use the form helper, but im trying to stadarize all forms with it.

thanks in advance. hope you can help me!

greetings.

-----

solution : just add a string as fourth parameter ¬.¬