![]() |
adding data attribute in form_dropdown? - 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: adding data attribute in form_dropdown? (/showthread.php?tid=46393) |
adding data attribute in form_dropdown? - El Forum - 10-30-2011 [eluser]Unknown[/eluser] is it possible to add the html5 data-* attribute in form_dropdown? $options = array( 'small' => 'Small Shirt', 'med' => 'Medium Shirt', 'large' => 'Large Shirt', 'xlarge' => 'Extra Large Shirt', ); this is the 2nd parameter of the form_dropdown function, but how can i add the data attribute here? |