List Categories and Subcategories using AJAX
Posted on 2011-05-10
I have a list of categories in a table, (4 cells across and 10 rows deep).
I want a list of subcategories to appear in a div, that will appear below the Category, using AJAX., when the Category is clicked.
Then when a sub category is clicked, I would like the other sub-categories to vanish, and sub-categories of the sub-category to appear, again using AJAX to pull the data from the database.
I am using PHP, MySQL and jQuery on the page.