This is a migrated thread and some comments may be shown as answers.

clear the content of RadTextBox

1 Answer 111 Views
Input
This is a migrated thread and some comments may be shown as answers.
Sigma
Top achievements
Rank 1
Sigma asked on 10 Apr 2012, 09:30 AM
Hello,

I want to clear the content of RadTextBox when the user focuses on a textbox so that the user can write his/her name.

Thanks,
Sigma.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 10 Apr 2012, 09:48 AM
Hello,

Try the following javascript in OnFocus client event of RadTextBox.JS:
function OnFocus(sender, args)
{
 sender.clear();
}

Thanks,
Shinu.
Tags
Input
Asked by
Sigma
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or