Questions tagged [livevalidation]

LiveValidation is a small open source JavaScript library for making client-side validation quick, easy, and powerful.

LiveValidation is a small open source JavaScript library for making client-side validation quick, easy, and powerful. It comprises of two main parts. Firstly, it provides developers with a rich set of core validation methods, which can also be used outside the context of forms. Secondly, it provides your visitors with real-time validation information as they fill out forms, helping them to get it right first time, making the forms easier, quicker and less daunting to complete.

The naming conventions and parameters of the validations are similar to those found in the Ruby on Rails framework, and as such is the perfect client-side companion. Don’t worry if you don't use Ruby on Rails though, LiveValidation can be used anywhere you like, is simple to learn, and a joy to use.

Two versions are provided - a prototype.js version (ideal for use with Rails), and a standalone version (for using with any other JavaScript framework, or when having one at all would be overkill). Both are fully tested on most modern browsers with a comprehensive test suite.

57 questions
9
votes
1 answer

LiveValidation .remove not working

I've got a Webform working with the LiveValidation extension. I have a conditional rule that if the user selects United States, then the State-or-province field must be within the list of state abbreviations. My problem is that if the user selects…
Colin
  • 255
  • 1
  • 10
4
votes
4 answers

How to check if masked input field is empty

I am using this masked input plugin and I would like to check when the field is empty. Below is what I have tried but it does not seem to work: HTML Le…
mpora
  • 1,411
  • 5
  • 24
  • 65
4
votes
3 answers

Checking for positive or negative number

How can we check if the input number is either positive or negative in LiveValidation?
Nazmul Hasan
  • 6,840
  • 13
  • 36
  • 37
2
votes
1 answer

How check if email element is valid?

I use LiveValidation plugin (http://livevalidation.com). I need validate one input and if it is ok, make same ajax. Instead submit button I have img and I would like to process it by onClick action. Everything works validation works live, but when I…
tomasr
  • 485
  • 1
  • 8
  • 24
2
votes
2 answers

Live Validation change output location

I'm using the Live Validation Javascript library and I'm wondering how I can use it to place the feedback at the bottom of the page. For instance, a user would input "asdf.com" in And I…
Matthew Salsamendi
  • 294
  • 1
  • 5
  • 14
2
votes
0 answers

Livevalidation - how to ignore hidden field?

I have a form with a dropdown showing 1 through 10. If user chooses 1-9, then a specific secondary paragraph field should show. And if the user chooses 10, then a different paragraph field should show. I figured out some javascript for showing the…
gryphon
  • 21
  • 2
2
votes
0 answers

How to determine which livevalidations have failed when a form is submitted

I'm using LiveValidation in a tall form (so some of the form has scrolled off the top of the screen when the user clicks the submit button at the bottom of the form). The user may not have visited every field on the form so may not have seen…
2
votes
1 answer

how to use liveValidation to validate a form on submit?

I have the following code to validate the form on submit:
Price:
Muhammad Nadeem
  • 368
  • 4
  • 7
  • 21
1
vote
4 answers

LiveValidation - Change validation message to picture?

LiveValidation is JavaScript library for validating data. I'm using it to validate a form as the user inputs information. At the moment the validation message that appears is set as follows: var username = new LiveValidation('username', {…
SJB
  • 661
  • 1
  • 8
  • 17
1
vote
2 answers

How do I validate a credit card exp date (2 fields) with livevalidation

using http://livevalidation.com on a custom PHP donation page. I want to make credit card exp dates in the past invalid, but all other selections valid. I'm using two select fields for the month and year. Seems like this should be done with the…
squarecandy
  • 4,894
  • 3
  • 34
  • 45
1
vote
0 answers

Validate.Custom not working -Livevalidation

I am trying to validate my select field using live validation This my code function validate() { return LiveValidation.massValidate(totalValidationFields); } function validateSelect(value) { alert('Validate select…
Nishant123
  • 1,968
  • 2
  • 26
  • 44
1
vote
0 answers

Use LiveValidation with dynamically added controls

I'm trying to do client side validation on form controls that are being dynamically added using the LiveValidation javascript library. It works fine when the controls and the validation code are there from the start, but not for controls that have…
Ectropy
  • 1,533
  • 4
  • 20
  • 37
1
vote
0 answers

LiveValidation Trigger Form Validation But Not Submit

I'm using LiveValdiation to validate my form and it works great. One problem I'm having is that I have a "View as PDF" link which saves the form and pops up the PDF in another window. The reason why I save first before viewing the PDF is that users…
Guest
  • 381
  • 2
  • 7
  • 22
1
vote
2 answers

LiveValidation - Focus

I'm using LiveValidation and I'm just wondering if anyone has had sucsess in setting the focus on the failed input form ready for re-entry... I've looked at the documentation but can't see anything. Thanks.
WebDevB
  • 492
  • 2
  • 7
  • 25
1
vote
1 answer

Disable javascript error display for textbox