Suggestion to video.derekallard.com - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Suggestion to video.derekallard.com (/showthread.php?tid=3244) |
Suggestion to video.derekallard.com - El Forum - 09-19-2007 [eluser]ELRafael[/eluser] After saw the video, a suggestion came to me. How can i pick an id from selected item on li list? My final code is about that: The method in my controller Code: $output = '<ul>'; My view file Code: <input type="hidden" id="id_cidade" name="id_cidade" value="" /> So, when i post my form, i'll have a hidden field called cidade_id that contains the unique id!! The video, all is correct, but, in my case (and i think some other users case), you need the id, not the text in the input field. []'s "I went to church incognito. When everybody rose the Reverend Smith, he recognized me and punched me in the nose." |