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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:19:14+00:00 2026-05-14T06:19:14+00:00

I am looking at validation of some text boxes for things like required, minlength,

  • 0

I am looking at validation of some text boxes for things like required,
minlength, max length, email etc… I am able to get examples that work fine on submit button on page. I want to do this validation on a button click which will only raise a Ajax request and not submit of page.

On the Internet all the samples found was with a submit button. Is there an
easy way to change this code a little bit to make it work for non submit button click or any
new jQuery or Java plugin to do the same?

I am using the jquery.validation.js for now. This works with submit buttons.

Any kind of help with suggestion or help is appreciated.

  • 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-14T06:19:15+00:00Added an answer on May 14, 2026 at 6:19 am

    The jQuery validator plugin already handles this. Just tweak some of the options in the validate method.

    As quoted in the documentation for the onfocusout option:

    Validate elements (except checkboxes/radio buttons) on blur. If nothing is entered, all rules are skipped, except when the field was already marked as invalid.

    Code Example:

    $("#form").validate({
      onfocusout: false
    });
    

    That’s just one of a few dozen options you can configure. You can see the full list of options for the validate method here:
    http://docs.jquery.com/Plugins/Validation/validate#options

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

Sidebar

Related Questions

I'm looking to add some speacial validation with webform through Drupal. It seems the
I've got my users entering an email address and doing some validation as they
I'm looking at adding validation into my web app. Some models' validity depends on
I'm using jQuery's validation plugin and looking to validate many dynamically added text fields
I'm looking to make validation for a page in which one or more fields
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 best practices for performing strict (whitelist) validation/filtering of user-submitted HTML. Main
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.

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.