![]() |
get ID in Autocomplete search using Jquery CI site? - 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: get ID in Autocomplete search using Jquery CI site? (/showthread.php?tid=24398) |
get ID in Autocomplete search using Jquery CI site? - El Forum - 11-09-2009 [eluser]Zeeshan Rasool[/eluser] Hello, I have an issue that if we are using jquery auto complete script then how can we get ID for a value that is showing in list and we click on it . because if there is some same values like user names ... so i need to get ID to match the records from DB. Thanks get ID in Autocomplete search using Jquery CI site? - El Forum - 11-09-2009 [eluser]mjsilva[/eluser] I've done something like this, the only difference is that I have a drop_down select with gives the user ability to search for VAT (nif) or Name. If you have any doubts feel free to post it, I'll answer as soon as possible. Jquery code in viewer: Code: var searchType = $("#searchType_drop :selected").val(); My controler functions: Code: // ------------------------------------------------------------------------ |