Hello,
I am trying to clear the content of a RadTextBox when user focuses on the textbox. I tried several ways but could not clear the content using javascript.
"LASTNAME" is written into a RadTextbox and when user focuses to this RadTextbox, "LASTNAME" should be cleared so that the user can write his/her name...
I tried to clear it using javascript;
<script type="text/javascript">
function clear()
{
$find("<%=RadTextBox1.ClientID %>").clear();
}
</script>
But it did not work. It reads the clear method but does nothing. So how can I clear the content, any ideas?
Thanks,
Ervin
I am trying to clear the content of a RadTextBox when user focuses on the textbox. I tried several ways but could not clear the content using javascript.
"LASTNAME" is written into a RadTextbox and when user focuses to this RadTextbox, "LASTNAME" should be cleared so that the user can write his/her name...
I tried to clear it using javascript;
<script type="text/javascript">
function clear()
{
$find("<%=RadTextBox1.ClientID %>").clear();
}
</script>
But it did not work. It reads the clear method but does nothing. So how can I clear the content, any ideas?
Thanks,
Ervin