JQuery Form Validation

I have a form on this page: http://spokeinsurance.com/index/
I am using JQuery validation to ensure a bike value, bike state and email address are entered.  However, My form submits without validation happening.  Can someone please tell me what I am doing wrong?
LVL 7
rgranlundAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

leakim971PluritechnicianCommented:
check my comment in the code
	<script type="text/javascript">
$.noConflict();
	 $(document).ready(function() {
alert("submitted!");
		// validate signup form on keyup and submit
		$("#getQuote").validate({
			rules: {
				bike_value: {
					required: true,
					minlength: 2
				},
				bike_state: {
					required: true,
					minlength: 5
				},
				email_value: {
					required: true,
					email: true
				},

			messages: {

				bike_value: {
					required: "Please enter the bike value",
					minlength: "Your username must consist of at least 2 characters"
				},
				bike_state: {
					required: "Please choose your state",
					minlength: "Your password must be at least 5 characters long"
				},
				email_value: "Please enter a valid email address"
			}
		}}); // HERE THE ERROR, you need two close braces

	});
	</script>

Open in new window

0
rgranlundAuthor Commented:
I changed it and the validation is still not working.
0
leakim971PluritechnicianCommented:
use this instead :

<script type="text/javascript">
	 jQuery(function($) {
		// validate signup form on keyup and submit
		$("#getQuote").validate({
			rules: {
				bike_value: {
					required: true,
					minlength: 2
				},
				bike_state: {
					required: true,
					minlength: 5
				},
				email_value: {
					required: true,
					email: true
				}
			},

			messages: {

				bike_value: {
					required: "Please enter the bike value",
					minlength: "Your username must consist of at least 2 characters"
				},
				bike_state: {
					required: "Please choose your state",
					minlength: "Your password must be at least 5 characters long"
				},
				email_value: "Please enter a valid email address"
				
			},
			submitHandler: function(form) {
            form.submit();
        	}
		});

	});
</script>

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rgranlundAuthor Commented:
Your brilliant!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
jQuery

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.