This project is archived and is in readonly mode.

#1114 ✓invalid

Form.Validator not passing the element to the onSuccess function

Reported by jdavidbakr | December 9th, 2010 @ 06:31 PM

I was getting an error in an onElementPass function using Form.Validator on a select element. It appears to not correctly pass the validated element to the function.

Here is code that represents the error:

In this sample code, I have an elementPass function for the validator that prints the argument passed below the form. If you type something in the text field, you'll see that it prints "[object HTMLInputElement] passed"; however, if you select something in the select box, you get "undefined passed"

This appears to be a 1.3 bug as I did not experience this until I updated to 1.3. (the sample code doesn't work with 1.2 because of course I'm linking against an external 1.3 More file)

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

People watching this ticket