I am creating a intranet site. I have 5 Departments. There are few subdepartments under those 5 departments.
There are few other categories under the subdepartments. Its very similar to OLX classifieds.
When you click a particular category, there are other fields populated, like if you select Mobiles, there are fields like Manufacturer populated on the left and you can click on them to sort the results.
If you click on another category, the fields related to that category are popluated.
How is this done ? Are these fields populated from SQL? Is Ajax necessary ?
How to create a onclick function for the category selected to display the results and show extra filters on the left side?
Hope i asked the question properly. Please, please help me understand the logic and the code.
So i get the desired output on mydiv and myresults. I am working on hiding mydiv if nothing from <select =type> is selected. Please reply if you can assist on the if() for jQuery.