Multiple Dependant Comboboxes
Hi
I am fairly new to JQuery so please bear with me.
I have a page which currently uses Stanislaus Madueke's adaptation of Remy Sharp's chained selects script.
The first combobox is a choice of countries, the second is a list of professions appropriate to the country chosen in the first box.
What I want to happen is, once the profession has been chosen then a series of options appear below based on the country and profession. Which options are shown will be determined by an array of ID numbers retrieved from a MySQL database by querying it with the country_id and profession_id e.g. ("SELECT option_id FROM table WHERE country_id=x AND profession_id=y").
Then if, for example, option_id's 1,2 and 5 are returned, then it should display 3 divs with id's of 1,2 and 5.
I am just struggling at the moment getting my head round the best way to do this. Ideally I don't want all the possible divs on the page and then just have them revealed as appropriate, but rather load the contents of the divs dynamically as point of selection.
I hope this makes sense. Do ask me any questions to clarify.