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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T18:42:37+00:00 2026-06-12T18:42:37+00:00

I have on problem with custom validation. I made one form which post data

  • 0

I have on problem with custom validation.

I made one form which post data to some function before it post there is some custom validation rule I made and then I call submitHandler but that’s not working.

 $(document).ready(function(){
$("#faculty").validate({
    rules: {
        designation:  {
         required: true
              },

     faculty_qual: {
          required: true
        }
      },

  messages: {
      designation: 'Please select a Dasignation.',  
      faculty_qual: 'Please select qualification'
    }
   submitHandler: function(form) {
       create_faculty();
         }
   });

Now when I run this I got some error Uncaught SyntaxError: Unexpected identifier

Now how will I send this data with this custom validation.

  • 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-12T18:42:38+00:00Added an answer on June 12, 2026 at 6:42 pm

    Seems like a syntactic error. You are missing a colon after the messages object and a semicolon and a parenthesis and semicolon at the end of the validate function invocation.

    $(document).ready(function(){
        $("#faculty").validate({
           rules: {
              designation:  {
                required: true
              },
    
              faculty_qual: {
                required: true
              },
              matric_pass_year: {
                 required: true
          }
           },
           messages: {
              designation: 'Please select a Dasignation.',  
              faculty_qual: 'Please select qualification',
              matric_pass_year: 'Please select Year' 
           },
           submitHandler: function(form) {
             create_faculty();
           }
       });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a custom validation rule (uniqueUserName). The problem I'm having is that
I have an issue with submitting post data. I have a form which have
I have some custom validation code, which includes a $formatter. (I store currency in
I have a problem with Hibernate Validator 3.1.0.GA not looking up custom validation messages
I’m having some problems with validation. I have created a custom validator called RequiredFieldRule
Within my web application I am using some custom validation for my form fields.
I have added a validation message CountryId custom error to a view. Problem is
I'm having problem on a custom inlineformset. I want validation to skip rows which
I have a very basic entity model which I'm trying to add custom validation
i made one script from here but now i have problem with geting $_POST['file']

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.