form_dropdown not showing text, but shows key instead - 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: form_dropdown not showing text, but shows key instead (/showthread.php?tid=53796) |
form_dropdown not showing text, but shows key instead - El Forum - 08-09-2012 [eluser]Unknown[/eluser] When I try to add a dropdown using the form_dropdown array, my website is doing something strange. It displays the key ("1"), and not the text ("GSAA"), UNTIL I press on the dropdown and select an item. Then it switches the display to show text instead of keys. Here is my code: Code: <?php What is going on?!? Can't figure it out. Thanks, George form_dropdown not showing text, but shows key instead - El Forum - 08-09-2012 [eluser]InsiteFX[/eluser] Index 0 is a default setting. Code: <?php form_dropdown not showing text, but shows key instead - El Forum - 08-09-2012 [eluser]Unknown[/eluser] Yes, I know. I think my error has something to do with the Foundation framework (http://foundation.zurb.com/docs/) I am using. When I use this to create the form: Code: <?php This are screwed up. But when I take out "custom" from the class: Code: <?php It works and shows the text values. Ugh. I will have to look into Foundation then. George form_dropdown not showing text, but shows key instead - El Forum - 08-09-2012 [eluser]CroNiX[/eluser] I was going to say it sounds like some javascript is interfering, since a browser would never do that behavior on it's own using HTML, which is what CI outputs. |