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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:24:27+00:00 2026-05-22T12:24:27+00:00

I have have a site where the user can alter the page content using

  • 0

I have have a site where the user can alter the page content using jquery load. In each page content I have a form which I validate with jquery validation plugin

    $("#form-create").validate({
        submitHandler: function(form) {
            var name = $("#name").val();
            save(name);
            return false;
        }
    });

I have noticed that all jquery click functions only work until I change the page content but I solved it with replacing the click with live "click". Though the same problemm occurs with the above validation. How come using click works until I altered the page content and live "click" solves the problem? OR how can I use the validation plugin with live "click" ,which will solve the problem, but not explain it to me 🙂

  • 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-22T12:24:28+00:00Added an answer on May 22, 2026 at 12:24 pm

    The reason that live click solves your problem is that the elements didn’t originally exist on your DOM, so using “live” means it’s a live click regardless due to it refreshing as new elements arrive on the DOM. The default events only use the first DOM that was loaded.

    If you want to check validate through the live click event then you should use something like this:

    $('.submitButton').live("click", function() {
    
        $("#form-create").validate({
            submitHandler: function(form) {
                var name = $("#name").val();
                save(name);
                return false;
            }
        });
    
    });
    

    Hope this helps, it was a little difficult as you didn’t specify which validation plugin you’re using, however, whatever the plugin this should work assuming you wish to call the validation on the submit button click event.

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

Sidebar

Related Questions

I am using an ASP.Net Web Application project. I have a user control which
I have a form allowing a user to signup for a news letter which
I have a login.jsp page which contains a login form. Once logged in the
I have a site with the following robots.txt in the root: User-agent: * Disabled:
Let's say that I have a site where once the user selects a few
if i have a search function for my site and i want the user's
We have a semi-weird issue for our site. Consistently, from 1 anonymous* user the
I have a IN/OUT ratio hit counting system on my site. When a user
I have a site, which contains several ashx handlers, on a couple of the
I have a site using a custom favicon.ico. The favicon displays as expected in

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.