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

  • Home
  • SEARCH
  • 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 6556701
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:58:43+00:00 2026-05-25T12:58:43+00:00

Here is a link on jQuery inline form validation that I’m trying to use

  • 0

Here is a link on jQuery inline form validation that I’m trying to use
http://www.position-absolute.com/articles/jquery-form-validator-because-form-validation-is-a-mess/

Everything looks good but I have a small problem

I have an input where I use this kind of validation

'validate[length[6,15]]'

It checks if number of length of input value and if it is less then 6 or grater then 15 gives and error.

Now what I want is to add there chance for input to have value length=0 , so the validation won’t fire any error message.

Is that possible ?

UPDATE

This is submit blocking function

<script type='text/javascript'>
  $(document).ready(function() {
$('#standart_form').validationEngine();
 $('#standart_form').submit(function() {
  return false;
 });
 });
  </script>

Now when I was using this 'validate[length[6,15]]' everything was working good. But If I try using new custom functions the whole forms submits itself ruining my ajax based application.

  • 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-25T12:58:43+00:00Added an answer on May 25, 2026 at 12:58 pm

    The plugin you’re using doesn’t support this out of the box, but its customization features allows you to implement that behavior yourself.

    For instance, you can specify a regular expression to be used when validating a field. You’ll need to add it to your translation file:

    "emptyOrLengthBetween6And15": {
        "regex": /^$|^.{6,15}$/,
        "alertText": "* Empty, or between 6 and 15 characters long"
    },
    

    Then you can refer to it in a custom validator:

    class="validate[custom[emptyOrLengthBetween6And15]]"
    

    You can also write your own validation function:

    function checkEmptyOrLengthBetween6And15(field, rules, i, options)
    {
        var val = field.val();
        if (val.length > 0 && (val.length < 6 || val.length > 15)) {
            return "* Empty, or between 6 and 15 characters long";
        }
    }
    

    Then use it in a funcCall validator:

    class="validate[funcCall[checkEmptyOrLengthBetween6And15]]"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

here is link to an example: http://techchorus.net/demos/jquery/hiding-input-elements-in-a-div.html It actally disables few elements on click
http://steph.net23.net/work.php here is my test link. This page has a jquery script in it
I have a jquery game that you can view here link text The game
I have a jquery game that you can view here link text The game
I am using Inline Form Validation Engine 1.6.2, jQuery plugin to validate form. But
I'm trying to use the new chrome inline install feature for extensions (see here:
I am using an horizontal accordion from here: http://www.dynamicdrive.com/dynamicindex17/haccordion.htm I got it to display
for this I am using colorbox jQuery plugin http://colorpowered.com/colorbox/ and a form. I am
i want to use the listview flicker"less" control found here Link directly in my
Here is a link to the tutorial that I am referring to. This seems

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.