1.11M Members

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

 
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

 
0
 
document.getElementById('ddl2').selectedIndex = 0;

cya

 
0
 
document.getElementById('ddl2').selectedIndex = 0;

cya

Thanks Nandem..I got it...


Regards,
Bala

 
0
 

No problem.
You're welcome

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