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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:50:09+00:00 2026-05-28T01:50:09+00:00

When I submit this form , I’m quickly getting an object is not a

  • 0

When I submit this form, I’m quickly getting an “object is not a function” error (in Chrome), while the form submits. What’s my bug?

I’m sure it’s something silly, but for the life of me I don’t understand what’s wrong here.

  • 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-28T01:50:09+00:00Added an answer on May 28, 2026 at 1:50 am

    The other answers are correct, but you can avoid all this hassle by using jQuery more properly.

    Instead of inline JavaScript inside the form tag, add ID to the form then have such code:

    $(document).ready(function() {
        $("#myform").bind("submit", validate);
    });
    

    The form now should look like this:

    <form id="myform">
    

    And don’t forget to add the return false; to the function itself to prevent submission.

    When inside the function, JS will treat validate properly as a function – when inline inside the form tag, it looked first in the form elements and found the button – hence the error you got.

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

Sidebar

Related Questions

I have this form submit code: Event.observe(window, 'load', init, false); function init() { Event.observe('addressForm',
$('form').submit(function(){ this.action=http://www.sitename.com/post; return false; }); having altered the action attribute of the form ,i
Look at this: $('form).submit(function (event) { $(':input.required').trigger('blur'); var num = $('.warning', this).length; alert(num);//Focus here!
I'm doing a jQuery AJAX post like this: var form = $(#formid); form.submit(function() {
my form validation does not firing...if i try to submit this form without entering
When i submit this form, the values just disappears from the textboxes. I like
I have a form, this form has a submit and a cancel button. when
I've been making this login form in C# and I wanted to 'submit' all
This is a form validation that will hide the submit button if the input
I want to submit a form like this: <input type=button onclick=$('#form1').submit(); value=Create /> but

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.