Hacker News new | past | comments | ask | show | jobs | submit login

A lazy solution is to periodically check for changes to the field, independently of any events. Could also let the user behavior trigger a validation check.



I wonder if a focus/blur combo would trigger the needed event and the value would be set? I need to try it out.


If you're using the jQuery Rails validations I believe you'll have to set the input's "changed" data to true before it'll run the validations again. Something like $(".my-input").data("changed", true);

If not, then good luck :D




Applications are open for YC Winter 2020

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: