Cannot assign html id attribute to select objects via form_dropdown() helper method - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Cannot assign html id attribute to select objects via form_dropdown() helper method (/showthread.php?tid=26598) |
Cannot assign html id attribute to select objects via form_dropdown() helper method - El Forum - 01-18-2010 [eluser]axiom82[/eluser] Helper Method: Code: <? echo form_dropdown('can_assign_id', array(0 => 'No', 1 => 'Yes'), '0', " id=\"213\"" ?> Result: Code: <select name="can_assign_id"> Expected Result: Code: <select name="can_assign_id" id="213"> An array with key/value pairs for attributes would be awesome. Cannot assign html id attribute to select objects via form_dropdown() helper method - El Forum - 01-19-2010 [eluser]axiom82[/eluser] Strange, the issue fixed itself. You know what that means: user error |