Click here to Skip to main content
16,017,069 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi Experts,
I have two drop down lists. dropdownlist1 and dropdownlist2 . I need to get dropdownlist1 value into the dropdownlist2 using javascript with autopostback="false".
Posted
Updated 4-Feb-11 1:47am
v2
Comments
Saptur 4-Feb-11 7:35am    
where r u?

Using Javascript.

Steps:
1. Define a client side onchange method for dropdown1
2. In that JS method get the value of dropdown1 and use it in dropdown2 as you want

Done! Try!
 
Share this answer
 
Javascript has nothing to do with autopostback. AuctPostBack is a ASP.Net concept(i.e. server side).
What you can do in JavaScript is use CloneNode [^]method to copy the dropdownlist.
 
Share this answer
 
Comments
Manas Bhardwaj 4-Feb-11 9:30am    
Any reason why my answer has been downvoted?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900