using ajax calls with text field
buttflattery opened this issue · comments
hi i need to make a zip codes look-up field that would communicate with the table in mysql and bring the results as the user types in the zip, i am having difficulties working on it, there are approximately 47,000 records/zipcodes, and if i load them on the page load it halts the page for a few seconds and the same happens whenever i click on it to open the drop-down, so i thought i should load only a few records from the database on page load and load the rest as the user types in by using ajax but as it does not have the support to load ajax calls with the select field and supports only text field of type="hidden" to work with ajax , how should i work it out, i think i need to modify the select2.php class that renders the elements
Regards,
Omer aslam
My apologies, I had not seen this issue until today.
I will close it, because probably your problem has already been solved.