Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data-validate="notequals=field" bug? #1542

Closed
TorakikiSan opened this issue May 21, 2020 · 3 comments
Closed

data-validate="notequals=field" bug? #1542

TorakikiSan opened this issue May 21, 2020 · 3 comments

Comments

@TorakikiSan
Copy link

Hi Olton!

Example code at

https://codepen.io/TorakikiSan/pen/EeyWmp

When the second entered value (MACHINE2) is checked, the program hangs on the "notequals", no error is generated.

After "notequals=" I tried both with the ID of the first field and with name, but in both cases it stuck.

Thanks

@olton
Copy link
Owner

olton commented May 21, 2020

this function works only inside a form.

From validator source

if (['compare', 'equals', 'notequals'].indexOf(f) > -1) {
    a = input[0].form.elements[a].value;
}

olton added a commit that referenced this issue May 21, 2020
@olton
Copy link
Owner

olton commented May 21, 2020

4.3.8

@olton olton added this to the 4.3.8 milestone May 21, 2020
@TorakikiSan
Copy link
Author

Great! As usual!

Thank's!

@olton olton added the Fixed label Jun 5, 2020
@olton olton closed this as completed Jun 21, 2020
olton added a commit that referenced this issue Oct 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants