1,105,578 Community Members

How to make selected index zero for dropdown list box in java script..?

Member Avatar
BalagurunathanS
Light Poster
26 posts since Apr 2007
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Hi all..

I am having two dropdown list boxes in my .aspx page

They are ddl1 and ddl2...

Now if i change the selected index of the first box (ddl1), the selected index of the second dropdownlist must automaticlly set to zeroth index..i.e index of the second dropdown list box should be set to zero..Somebody provide me with the code in java script as early as posible..

Regards,
Balagurunathan S

Member Avatar
Nandem
Newbie Poster
3 posts since Aug 2007
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 
document.getElementById('ddl2').selectedIndex = 0;

cya

Member Avatar
BalagurunathanS
Light Poster
26 posts since Apr 2007
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 
document.getElementById('ddl2').selectedIndex = 0;

cya

Thanks Nandem..I got it...


Regards,
Bala

Member Avatar
Nandem
Newbie Poster
3 posts since Aug 2007
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

No problem.
You're welcome

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article