5 ms·
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.
by fistofjohnwayne 13y ago
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.
- jc00ke 13y agoI wonder if a focus/blur combo would trigger the needed event and the value would be set? I need to try it out.
- fistofjohnwayne 13y agoIf 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