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

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -