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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T01:53:45+00:00 2026-06-02T01:53:45+00:00

I am currently using jquery validate 1.8.1 and my target browser is IE7. I

  • 0

I am currently using jquery validate 1.8.1 and my target browser is IE7. I have a form on the main page and the form elements are injected dynamically via AJAX. There is a dropdown box governing the elements in the form, and the form would submit different content depending on what’s selected with this dropdown box.

$('some_pane').load('/remote_location.html', ...);

Hence, I need to instantiate jquery validate dynamically:

var myValidator;
myValidator = $('#myForm').validate();

myValidator.settings.submitHandler = myFormSubmitHandler;
$('#input1inMyForm').rules('add', .....)

All is fine when it dynamically loads for the first time upon page load, and when the form submit, myFormSubmitHandler is called being exactly once.

However, the problem arises when the user select another value in the dropdown box, which would dynamically inject another set of elements into the form, hence instantiating a new validator.

I have done proper clean up before instantiating a new validator and it works in Firefox and Chrome

$('#myForm').data('validator', null);
$('#myForm').unbind('submit');

I have done extensive search on StackOverflow, though I couldn’t come up with a working solution, I could summarize a few key points regarding IE and jQuery

  1. you can only unbind events that are binded with jQuery.bind
  2. events in IE are stored in events property and I can see that I couldn’t remove the previous onsubmit events. Every time I instantiate a new validator, an extra onsubmit event is being attached to the form.

These are the clean up I have tried, but not working on IE7 for me

$('#myForm').removeAttr('onsubmit');
if( document.detachEvent ) {
    document.getElementById('myForm').detachEvent('onsubmit', myFormSubmitHandler);
}

Much appreciated.

  • 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-02T01:53:47+00:00Added an answer on June 2, 2026 at 1:53 am

    I got by this problem by changing the submit button

    <input type="submit" .... >
    

    to instead just a normal button

    <input type="button" .... >
    

    and in IE6 it won’t add extra submit handlers as I reinitiate new validator.

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

Sidebar

Related Questions

I'm currently using this jQuery validate plugin and having an issue in IE where
I'm currently using jQuery Cookies plugin, and depending on which side of the page
I'm currently using the jQuery Validate plugin for my input validation. It is used
I am using Jquery Validation . Currently, I have a username, what i want
I'm currently using the jquery bassistance validator on my form. I was trying to
I'm using this jQuery validation plugin and getting the famous: $(#Form).validate is not a
I have a problem trying to validate a user value using the jQuery Validation
I'm using the jQuery validation plugin to validate a form. The form fields are
In my form I am using jquery form validate plugin to validate a form.
I'm currently using jQuery.validate as a plugin for validation... my problem comes into play

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.