php - Codeigniter form helper dropdown -
I want to add an ID and NAME to my drop down (so that I can get the value using jQuery. But it seems that CI will not allow. Is there any other way?
$ device = array ('name' = & gt; 'device', 'id' = & gt; Device '); $ =' monitor '= & gt;' Chair ',' keyboard '= & gt;' keyboard ',' mouse '= & gt;' mouse ',' table '= & gt;' table ' 'UPS' => 'UPS',); Echo form_dropdown ($ device, $ device_opts);
Try
echo form_dropdown ("Device ", $ Device_opts," "," id = 'device' ");
Comments
Post a Comment