How do i populate dropdown menuB depending on the selected option in dropdown menuA?

How do i populate dropdown menuB depending on the selected option in dropdown menuA??? I am parsing the menu data from a mysql db with php??

Can this be done with php + jquery

Hello D-flyer

You can check the following links.

With mootools-

http://youngdutchdesign.com/examples/cvlinkselect.php

With ajax-(IMO this tutorial is best because they have shown it properly that how to use it.)

http://roshanbh.com.np/2008/01/populate-triple-drop-down-list-change-options-value-from-database-using-ajax-and-php.html

Using JavaScript (jQuery if you like), attach a function to the change event of the select box which sends its value to a PHP script via XMLHttpRequest (AJAX). Your PHP script reads that value (from $_GET like any other request), does the database query to get the items for the other list, and returns them in some format – JSON is probably a good idea using json_encode. Then the success handler function for your XMLHttpRequest uses this array to populate the second list.