hi,,
i have one dropdownlist and one textbox.
i want a javascript code for following criteria.
if i select any value from dropdownlist then focus should directly set to the textbox.
plz provide me code..
thank you.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Amit ChoudharyPosted Mar 19, 2010, 8:36 AM
My answer still not get marked....
Amit ChoudharyPosted Mar 17, 2010, 9:14 AM
On page_load event write the following line:
DropDownList1.Attributes.Add("onchange", "document.getElementById('" + TextBox1.ClientID + "').focus();");
Please mark as answer if it helps.