guillaumepotier / Parsley.js

Validate your forms, frontend, without writing a single line of javascript
http://parsleyjs.org
MIT License
9.05k stars 1.32k forks source link

Compare to values in two separate select dropdowns #1371

Open drkrtj opened 1 year ago

drkrtj commented 1 year ago

I am not sure if this is possible with parsley. I have spent several hours researching and trying to make this work. I need to compare two select dropdown values. The first is a 'from' age and the second is a 'to' age. As you would expect the 'from' needs to be less than or equal to the 'to' age. I have the data-parsley-lte="#fromage" in the 'to' age select tag. It does not appear to be functioning. Before I spend anymore time on this can you let me know if this is possible with parsley? Thanks in advance.