Support Forums
PHP, MYSQL, Javascript Drop down menu - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18)
+---- Forum: Database Programming (https://www.supportforums.net/forumdisplay.php?fid=28)
+---- Thread: PHP, MYSQL, Javascript Drop down menu (/showthread.php?tid=3324)



PHP, MYSQL, Javascript Drop down menu - Darkside92 - 12-04-2009

i have 2 drop down menus 1 for the state anthoer for the college connected to a database

you click the state then loads a list of colleges then you click your college on the register page along with the rest of your stuff and it will add it to your accoutn and then put your user id to the class id once the find there class now my big problem is i need to get this script to work with my database.


RE: PHP, MYSQL, Javascript Drop down menu - Lord-Nikon - 06-13-2010

Have you tried using the onChange event and then call an Ajax event that will do the update and building of the new dropdowns? If you have jQuery you can asign the $("#dropdownId").change(function(){//your ajax calls here}); in the document ready to speed up the process.