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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:21:59+00:00 2026-06-17T15:21:59+00:00

I’m pretty new to using jQuery’s validate(), so maybe I’m missing something obvious. When

  • 0

I’m pretty new to using jQuery’s validate(), so maybe I’m missing something obvious.

When I’ve pasted my form / validate function to jsfiddle, it validates correctly. Can be seen at http://jsfiddle.net/AmLcV/6/ .

However on my live webpage, the form always submits no matter what. This is at http://students.cse.unt.edu/~haw0038/4890/index.php .

HTML:

<form id="form1" method="post" action="javascript:alert('form submitted')">
  <p>&bull; Which version would you like to run?<br/>
    <input id="variables" type="radio" name="version" value="variables" />
    <label for="variables">Individual Variables</label><br/>
    <input id="array" type="radio" name="version" value="array" />
    <label for="array">Array Representation</label>
  </p>
  <p>&bull; Would you like to find the largest, or smallest number?<br/>
    <input id="large" type="radio" name="type" value="large" />
    <label for="large">Largest</label><br/>
    <input id="small" type="radio" name="type" value="small" />
    <label for="small">Smallest</label>
  </p>
  <p>&bull; Use random numbers, or input your own?<br/>

    <input id="random" type="radio" name="numSelect" value="random" />
    <label for="random">Generate random numbers for me</label><br/>
    <input type="text" name="nums" id="nums" value="How many? (2 to 10)" disabled="disabled"/><br/><br/>

    <input id="userDef" type="radio" name="numSelect" value="userDef"/>
    <label for="userDef">I want to use my own numbers</label><br/>
    <input id="userNums" type="text" name="userNums" disabled="disabled"/><br/><br/>

    <input type="submit" name="submit" value="Start the Simulation!" />
  </p> 
</form>

JS:

$(function(){

  $('#form1').validate({
      rules:{
      version: "required",
      type: "required",
      numSelect: "required",
      userNums: "required"
    }
  });
});

Any ideas why this would be happening? I have no idea what I’m missing here, or what would be causing it.

Thanks in advance.

  • 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-17T15:22:00+00:00Added an answer on June 17, 2026 at 3:22 pm

    You dont have valdiate plugin included on your server please add this line and see.

    <script type='text/javascript' src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.9/jquery.validate.min.js"></script>
    

    In JSFiddle this script is added this Script under manage Resources.

    Its very good to use firebug for debuging javascript.

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

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am using JSon response to parse title,date content and thumbnail images and place
I have a small JavaScript validation script that validates inputs based on Regex. I
I am trying to find ID3V2 tags from MP3 file using jid3lib in Java.
I am using the SimpleRSS gem to parse a WordPress RSS feed. The only
I want use html5's new tag to play a wav file (currently only supported
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and

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.