I want to add both an ID and NAME for my drop down (so that I could get the value using jQuery. but it seems that CI won't allow. Is there another way?
$device = array(
'name' => 'device',
'id' => 'device'
);
$device_opts = array(
'monitor' => 'Chair',
'keyboard' => 'Keyboard',
'mouse' => 'Mouse',
'table' => 'table',
'UPS' => 'UPS',
);
echo form_dropdown($device, $device_opts);