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

  • Home
  • SEARCH
  • 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 8302307
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:15:28+00:00 2026-06-08T17:15:28+00:00

Using knockout, I need to reset certain templates, not the entire form. resetForm() resets

  • 0

Using knockout, I need to reset certain templates, not the entire form. resetForm() resets everything. Anyone ran across this before?

I’ve looked at this post. I could probably do something like that. It just seems like it would get real messy fast with so many various fields and validation rules.

  • 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-08T17:15:29+00:00Added an answer on June 8, 2026 at 5:15 pm

    I’m working on a project with knockout and jquery validate at the moment. One thing I’ve settled upon is dividing the user input into subsections, essentially having multiple forms on the same page. Combine them all together and that’s the total ‘form’ the user sees.

    (Aside: I’m doing this because the API I’m submitting to has different expectations from what the form/UI/marketing dept. expects of the user experience. Each <form> is essentially a different API input section, but the marketing dept wanted to be able to order the user inputs arbitrarily, so I’m gathering them up by class:

    <form class="api1">
         ... some inputs
    </form>
    <form class="api2">
        ... some different inputs
    </form>
    <form class="api1">
        ... some more inputs
    </form>
    

    I’m submitting these by Ajax (it’s a single page app), so I’m not really losing anything from the standard form/action/submit/post model by doing this. But applying this to your situation, you could then essentially go:

    $("#sectionId form.api1").each(function() {
        $(this).validate().reset();
    });
    

    I may have gotten that syntax wrong, I’m not using the reset function on jQuery validate. But now that I think about it, I probably could save some code if I did…

    Feel free to post some code and I can better adapt my solution to your problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Html form is controlled using Knockout JS and jQuery templates. Basic jQuery validation is
I'm using Knockout observables to update span values located within table cells. I need
Does anyone know of an example application using knockout js and MVC 2? I'm
I'm using Knockout with jQuery and jQuery templates. Assume that I have a template
So far in the Knockout.js documentation, they only show using jQuery templates that are
I'm trying to implement Knockout.js-External-Template-Engine using a working demo of nested templates Currently I
I am using knockout and have an array Properties and each Property can have
I am using knockout.js in my ASP.NET MVC project. I figured out how to
I just started using knockout.js and it works great with normal bidings. I have
A bit of a mystery has cropped up using knockout (2.1.0) and knockout mapping

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.