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

The Archive Base Latest Questions

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

I am looking for validation using jquery on a simple form and I want

  • 0

I am looking for validation using jquery on a simple form and I want to know how I can check for alphanumeric or numeric. Then I want to highlight the error text field using rules. This code is working great is entered in the fields can anyone help on adding this functionality to my code?

here is the code i have used

$("#frmstudent").validate({
      rules:{
          txt_name :{ required:true, minlength : 3 },  

          txt_fname:{ required:true, minlength : 3  },

          txt_class:{ required:true, minlength: 2 },

          txt_city:{ required:true, minlength : 3},

          txt_contact:{ required:true, minlength : 5 },

          txt_email:{ required:true, email:true, minlength : 8},

          txt_address:{ required:true , minlength : 10}

      },
      messages:{

          txt_name:{required:"<i>Please enter ur full name</i>",
                    minlength:"<i>please enter at least 3 characters</i>"},

          txt_fname:{required:"<i>Please enter the fathers name in required field</i>",
                    minlength:"<i>please enter at least 3 characters</i>"},

          txt_class:{required:"<i>Please enter the your class name</i>",
                    minlength:"<i>please enter at least 2 characters</i>"},

          txt_city:{required:"<i>Please enter your city name</i>",
                    minlength:"<i>please enter at least 3 characters</i>"},

          txt_contact:{required:"<i>Please enter your contact details</i>",
                    minlength:"<i>please enter at least 5 characters</i>"},

          txt_email:{required:"<i>Please enter your valid email address</i>",
                    minlength:"<i>please enter at least 8 characters</i>"},

          txt_address:{required:"<i>Please enter your address</i>",
                    minlength:"<i>please enter at least 10 characters</i>"}


      }
    });
  • 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-23T01:00:29+00:00Added an answer on May 23, 2026 at 1:00 am

    you can add a custom rule to validate the alphanumeric characters. For this create a custom rule and validate using some regular expression in the custom created method. Check the SO post here

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

Sidebar

Related Questions

I'm using the jQuery plugin Validation to validate a form. I have a select
I'm using LiveValidation of livevalidation.com for some simple and more complicated form validation on
I am looking for a validation framework that can handle the validation of my
I'm looking at developing a simple validation framework for WPF (the IDataErrorInfo method doesn't
I'm looking for an easy to use, reasonably complete form validation solution for php.
I'm looking for a tool to enforce coding styles, validation check for T-SQL script.
I'm looking for a plugin for jQuery that can validate as a key is
I'm using jquery for validation in my MVC2 web app ( as described here
I'm looking to make validation for a page in which one or more fields
I'm looking for best practices for performing strict (whitelist) validation/filtering of user-submitted HTML. Main

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.