clear the content of RadTextBox

2 posts, 0 answers
  1. Sigma
    Sigma avatar
    87 posts
    Member since:
    Apr 2012

    Posted 10 Apr 2012 Link to this post

    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.
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 10 Apr 2012 Link to this post

    Hello,

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

    Thanks,
    Shinu.
Back to Top