0

I use this plugin for jquery validation: http://jqueryvalidation.org

This is not problem when I need: required, required number etc., I just put in element class like this:

<input type="text" id="" value="" name="name"size="40" class="required"

In my example I need required number but only if is input not blank, when i use

    <input type="text" id="" value="" name="name"size="40" class="required number"

user can't leave this input.

1 Answer 1

4

leave out required

<input type="text" id="" value="" name="name"size="40" class="number" />

Demo: Fiddle

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.