I have two TextBoxes on my ASP.NET page:
- Alt
- Caption
When I have entered some text in Alt and after that on click on Caption I want to it to show the same text as was entered in Alt.
Please help me out.
Thanks in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
hmm, you need to be more precise on how you want to do it as you have plenty of options here, e.g.
So, which way do you prefer?
JavaScript function:
jQuery:
AutoPostBack="True"on Caption textbox control, use OnGotFocus() event handler and, in it, copy the text to Caption, like so:Caption.Text=Alt.Text