title: java-script cannot clear the Radtextbox
body: <p>Sir/Madam</p>
  
  <p>I am going to create a a form with a reset button which can clear the fields of the form</p>
  
  <p>But the function cannot work. The previous record entered in the box is still here.
  Would you please tell the methodology to clear the forms on the CLIENT SIDE ? </p>
  
  <p>the below is my code:</p>
  
  <pre><code>  &lt;script type="text/javascript"&gt;
  
       ...
          function ClearForms(sender, args) {
  
              document.getElementById('&lt;%=txtRemeasureCode.ClientID%&gt;').innerText() = "";
              document.getElementById('&lt;%=dapSubmitTo.ClientID%&gt;').clear();
              document.getElementById('&lt;%=dapSubmitFrom.ClientID%&gt;').clear();
  
  
          }
   .. .
  
        &lt;telerik:RadTextBox ID="txtRemeasureCode" Width="200px" runat="server" AutoPostBack="false" /&gt;    
  
    ....
             &lt;telerik:RadDatePicker ID="dapSubmitFrom" runat="server" MinDate="2010-01-01" AutoPostBack="false"            Width="200px"&gt;
                          &lt;Calendar ID="CalendarFrom" RangeMinDate="2010-01-01" runat="server"&gt;
                          &lt;/Calendar&gt;
  
           &lt;DatePopupButton ImageUrl="" HoverImageUrl=""&gt;&lt;/DatePopupButton&gt;
  
               &lt;DateInput DisplayDateFormat="yyyy-M-d" DateFormat="yyyy-M-d" runat="server" &gt;&lt;/DateInput&gt;
                       &lt;/telerik:RadDatePicker&gt;
                .....
                  &lt;telerik:RadDatePicker ID="dapSubmitTo" runat="server" MinDate="2010-01-01" AutoPostBack="false"                      Width="200px"&gt;
                          &lt;Calendar ID="CalendarTo" RangeMinDate="2010-01-01" runat="server"&gt;
                          &lt;/Calendar&gt;
  
               &lt;DatePopupButton ImageUrl="" HoverImageUrl=""&gt;&lt;/DatePopupButton&gt;
  
             &lt;DateInput DisplayDateFormat="yyyy-M-d" DateFormat="yyyy-M-d" runat="server"&gt;&lt;/DateInput&gt;
                      &lt;/telerik:RadDatePicker&gt;
  
  
  
                ...........
  
                 ..............
  
                  &lt;telerik:RadButton ID="btnReset" runat="server" Text="Reset" OnClientClick="ClearForms;return false"&gt;
                       &lt;Icon PrimaryIconUrl="~/Image/Button/reset.gif" PrimaryIconLeft="4" PrimaryIconTop="4" /&gt;
                  &lt;/telerik:RadButton&gt;
  </code></pre>