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 7605799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T00:15:28+00:00 2026-05-31T00:15:28+00:00

I am having a fieldset in jQuery template: <script id=tmpl_companies type=x-jquery-tmpl> <fieldset id=add-row class=clearfix>

  • 0

I am having a fieldset in jQuery template:

<script id="tmpl_companies" type="x-jquery-tmpl">
    <fieldset id="add-row" class="clearfix">
        <div>
            <label for="industry_type">Industry Type: </label>
            <input type="text" id="industry_type" value="${industry_type}"><br/>
        </div>
        <div>
            <label for="hiring_company_name">Hiring_Company Name: </label>
            <input type="text" id="company_name" value=${hiring_company_name}><br/>
        </div>
        <div class="last">
            <button type="submit" id="save" name="save" alt="save" >
                <img src="/assets/img/add.png" />
            </button>
            <button type="reset" id="reset" name="reset" alt="reset" >
                <img src="/assets/img/cancel.png" />
            </button>
        </div>
    </fieldset>
</script>

How can I reset the fieldset values by clicking the reset button

'click #reset' : 'reset'

in backbone.js

reset: function() {
  ???????
}
  • 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-05-31T00:15:30+00:00Added an answer on May 31, 2026 at 12:15 am

    Don’t handle this in backbone. Just let the browser reset the form for you, using the <input type="reset"> button.

    If you must use Backbone, just re-render the view:

    
      reset: function(){
        this.render();
      },
    
      render: function(){
        var html = $("#my-template").tmpl(this.model.toJSON());
        this.$el.html(html);
      }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having this radio buttons in horizontal controlgroup: <div data-role=fieldcontain> <fieldset data-role=controlgroup data-type=horizontal> <legend>Geslacht:</legend> <input
I have a field set <FieldSet> <legnd>Studnetinfo</legend> <intpu type=checkbox> and here I am having
I am having a css issue with fieldset and wonder if you could help?
I'm having a very weird problem with radio buttons in JQuery Mobile. I'm populating
I am still new to MVC. I am currently having a add person page,
I am using jQuery .dialog() in my code. In dialog i am having Form.
Having this fieldset: <fieldset> <legend>[*death]</legend> <select name=death style=width: 120px> <option value=Dead>[*died] <option value=NotDead>[*alive] <option
We are having a discussion as I'm currently fixing an IE7 bug, as <label>
Having been a PHP developer on LAMP servers for quite a while, is there
Having a heckuva time with this one, though I feel I'm missing something obvious.

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.