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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:45:22+00:00 2026-05-23T07:45:22+00:00

right to the point. Have this form: <form action=/Home/AskQuestion method=post id=question> <div class=name> <label>Name</label><br>

  • 0

right to the point. Have this form:

<form action="/Home/AskQuestion" method="post" id="question">
<div class="name">
<label>Name</label><br>
<input type="text" class="name required">
</div>
<div class="email">
<label>Email</label><br>
<input type="text" class="email required">
</div>
<div class="subject clearleft"><label>Subject</label><br> <select name="GroupId" class="emailSubject required" id="SubmitAQuestionEmailSubject"><option value="0">Customer Service</option><option value="1">Parts Request</option><option value="2">Product Question</option><option value="3">GCRR</option></select></div>
<div class="question clearleft">
<label>Question</label><br>
<textarea cols="20" rows="2" class="required"></textarea>
</div>
<input type="submit" class="submit">
</form>

and this code:

$(document).ready(function(){ $("form").validate(); });

A google search for “jquery.validate example” gives me back all sorts of hits for a “working” sample just like this, which will prevent a form submission if any of the class=”required” fields are blank. The example on the jquery validate page works for me.

My form submits anyway when I leave a “required” input blank. What the hell am I doing wrong?

Edit: Lost some info that was originally in this post somehow…

I am including both the jquery (1.6.1) and jquery validation (1.6 from the file header) script files. Jquery is included before jquery.validation. I’ve verified with firebug that the scripts are being found, and I’m not able to see any errors either in firebug or in the Firefox error console.

Edit2:

Interestingly, replacing the $(“form”).validate() with this code seems to trigger validation, but again, only the first input in the form (name) is validated…

$(".submit").click(function (evt) {
    if ($("form#question").validate().form()) {
        alert("valid");
    }
});
  • 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-23T07:45:23+00:00Added an answer on May 23, 2026 at 7:45 am

    Are you loading both jQuery and the validate plugin script?

    In case you want to be lazy:

    <script type="text/javascript" src="jquery-latest.min.js"></script>
    <script type="text/javascript" src="jquery.validate.min.js"></script>
    

    UPDATE:

    Each input value needs a name="" associated with it. The validation won’t work otherwise.

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

Sidebar

Related Questions

I was wondering if anyone can point me in the right direction. I have
I'll get right to the point. This is what a browser request looks like
Can anyone point me in the right direction on this. From reading the FAQs
I have this model and modelform: class Comment(models.Model): text = models.CharField(max_length=100) def clean_text(self): print
I am hoping someone can point me in the right direction. I have a
I have a bunch of buttons on my form, and at a certain point
Can someone point me in the right direction? I wish to distribute a WCF
Can anyone point me in the right direction of some facial recognition libraries &
Can anyone point me in the right direction how to configure Visual Studio 2005
Can anyone point into the right direction here. I want to respond when my

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.