Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8724405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:49:27+00:00 2026-06-13T07:49:27+00:00

Sir/Madam I am going to create a a form with a reset button which

  • 0

Sir/Madam

I am going to create a a form with a reset button which can clear the fields of the form

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 ?

the below is my code:

  <script type="text/javascript">

     ...
        function ClearForms(sender, args) {

            document.getElementById('<%=txtRemeasureCode.ClientID%>').innerText() = "";
            document.getElementById('<%=dapSubmitTo.ClientID%>').clear();
            document.getElementById('<%=dapSubmitFrom.ClientID%>').clear();


        }
 .. .

      <telerik:RadTextBox ID="txtRemeasureCode" Width="200px" runat="server" AutoPostBack="false" />    

  ....
           <telerik:RadDatePicker ID="dapSubmitFrom" runat="server" MinDate="2010-01-01" AutoPostBack="false"            Width="200px">
                        <Calendar ID="CalendarFrom" RangeMinDate="2010-01-01" runat="server">
                        </Calendar>

         <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>

             <DateInput DisplayDateFormat="yyyy-M-d" DateFormat="yyyy-M-d" runat="server" ></DateInput>
                     </telerik:RadDatePicker>
              .....
                <telerik:RadDatePicker ID="dapSubmitTo" runat="server" MinDate="2010-01-01" AutoPostBack="false"                      Width="200px">
                        <Calendar ID="CalendarTo" RangeMinDate="2010-01-01" runat="server">
                        </Calendar>

             <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>

           <DateInput DisplayDateFormat="yyyy-M-d" DateFormat="yyyy-M-d" runat="server"></DateInput>
                    </telerik:RadDatePicker>



              ...........

               ..............

                <telerik:RadButton ID="btnReset" runat="server" Text="Reset" OnClientClick="ClearForms;return false">
                     <Icon PrimaryIconUrl="~/Image/Button/reset.gif" PrimaryIconLeft="4" PrimaryIconTop="4" />
                </telerik:RadButton>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T07:49:30+00:00Added an answer on June 13, 2026 at 7:49 am

    This is working code :

    <telerik:RadComboBox ID="RadComboBox1" runat="server" OnClientSelectedIndexChanged="SelectedIndexChanged" > 
        <Items> 
            <telerik:RadComboBoxItem Value="0" Text="" /> 
            <telerik:RadComboBoxItem Value="1" Text="One" /> 
            <telerik:RadComboBoxItem Value="2" Text="Two" /> 
            <telerik:RadComboBoxItem Value="3" Text="Three" /> 
        </Items> 
    </telerik:RadComboBox> 
    
    <telerik:RadTextBox ID="RadTextBox1" runat="server" /> 
    
    <asp:Button ID="btnClear" runat="server" OnClientClicked="ClearValues();return false;" Text="Clear" /> 
    
    <script type="text/javascript"> 
    
    function SelectedIndexChanged(sender, args) 
    { 
        if (args.get_item().get_value() != 0) 
        { 
            var textBoxNewValue = args.get_item().get_value() + ": " + args.get_item().get_text(); 
            $find("<%= RadTextBox1.ClientID %>").set_value(textBoxNewValue); 
        } 
        else 
        { 
            $find("<%= RadTextBox1.ClientID %>").clear(); 
        } 
    } 
    
    function ClearValues() 
    { 
        $find("<%= RadTextBox1.ClientID %>").clear(); 
        $find("<%= RadComboBox1.ClientID %>").clearSelection(); 
    } 
    
    </script> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Respected sir/madam, I have a fortran exe which takes a input file and produces
Sir, these days i am improving my recursion skills but i am stuck in
Sir/Madam, I want to know where WSDL exists. Do user need to do interact
In rails we can access db column through attributes rails provided, but can we
sir, when i click on Rename Day button jquery popop calender appears in my
Sir, I am developing an application in which i am to save some information
Sir, Here i need to add geolocation from metadata to uiimage but after adding
Dear Sir/m'am How can i replace ther deprecated ereg_replace with preg_replace or str_replace and
I am trying to create a simple simulation program of SIR-epidemics model in java.
I've got a textfile which contains the following data: name = Very well sir

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.