Jump to content

May be how we will do it in javascript code using onchange or onselect....


gagan22

Recommended Posts

Hi all,

 

 

I have made 2 drop down box naming client, project .

All values in this drop down box are coming from database. I am fetching all value through sql query. First drop down box is showing all client which are in database. Second drop down box is also showing all project which are in database.

 

For example, I have three client whose name are  sam,due,joy. Each of have these have different project . Like sam have project like pro2, pro3 and due have DTL,Pro1 and joy have pro5,CMM,PPC like this.

 

Now problem is that when i select First client from drop down then it should only show that project in second drop down box which project come under  first client .But this is showing all projects which exists in database.

 

I do not know what event i will have to use for this . As i think like onchange or onselect event and what type of code i will have to use for these events. So how i can do this in javascript code. Please help me.

Thanks,

Gagan

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.