tags:

views:

14

answers:

1

Hello All,

I have 3 drop down lists and they are linked together:

Category Name, Subcategory Name, Name. Each one of them is retrieved from the database perfectly. The link between category and subcategory in the tables is category Id and for the name between it and subcategory is the subcategory id.

Now, my question is that I need to know how to see the results based on the user selection by using the onchange javascript.

I tried to do that for static values and I got the concept, but how can i do that if I am retreiving the values from the DB.

A: 

If i've understood properly, you want to populate a drop down list depending on what option the user has selected in the previous drop down list? If so, the way I do it is using JQuery. It is a bit long to explain, but this a good tutorial to start with: http://think2loud.com/using-jquery-and-xml-to-populate-a-drop-down-box/

Regards.

yinyang78
Thank you my friend.I am a little bit stuck, is there is any easier solution?
maas