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

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -