Start New Discussion within our Web Development Community

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..

Balagurunathan S

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


Thanks Nandem..I got it...


This article has been dead for over six months. Start a new discussion instead.