Need Help

I need the following output:
<select name = "XXX" id="XXX" class="xxx">
<option value="">XXX</option>
<option value="">XXX</option>
Here is my code:
$js = 'id="module_id"';
echo form_dropdown('module_id',$list_of_module,$js);
And this code outputs only :
<select name = "module_id" >
<option value="">XXX</option>
<option value="">XXX</option>

How can i insert id into select box or drop down box need help

Put $js as a fourth parameter in form_dropdown() as shown below.
3rd parameter is a default value you want to be selected on form load.

$js = 'id=“module_id”';
echo form_dropdown(‘module_id’,$list_of_module,'0',$js);

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.