469,347 Members | 1,936 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,347 developers. It's quick & easy.

trying to clear textboxes in a user control

abehm
35
how do I access a method that will clear textboxes in a user control, from a btnClick event in another user control on the same page?
May 25 '07 #1
2 1285
jhardman
3,406 Expert 2GB
With javascript. I'm not an expert, but it should be something like this:
Expand|Select|Wrap|Line Numbers
  1. onClick="this.form.myTextArea1.value=''"
  2.  
I'll move this to the javascript forum to see if someone there has a better explanation.

Jared
May 25 '07 #2
iam_clint
1,208 Expert 1GB
<input type="button" onclick="document.getElementById('input1').value=' ';" value="Clear field">

<input type="text" value="" id="input1">
May 25 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

By using this site, you agree to our Privacy Policy and Terms of Use.