Click here to Skip to main content
15,910,210 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a dropdownlist and a textbox, when i fill dropdownlist then at index 0 i set a value --select--, so when selectedindex =0 then i will add in the database which is entered in the textbox but when user select any thing from the dropdownlist then textbox will have selecteditem in textbox and user can change that text and then after i will update in the database.
So when user select any thing from dropdownlist, i want to assign same to textbox with the help of javascript, because i do not want to user server side code and for adding or updating i will use server side code.
Thanks in advance.
Posted

Here[^] is an example to handle client side scripting for an event.
Of course, you can always use AJAX as well.
 
Share this answer
 
Comments
Shailesh g 5-Feb-12 1:47am    
Dear i did not get any thing from the link.
Please provide some other link or solution.
thanks
 
Share this answer
 

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