question on using textarea events
hello -
i want to use an event when a textarea has changed, but only actually respond
AFTER the user appears to be completed.
the best i have come up with is something like this:
- flag = null; // define input response flag
- jQuery('input[name=textAreaField]').on('change input', () => {
- flag = true; // set input response flag
- })
- jQuery('input[name=textAreaField]').on('mouseleave', () => {
- if ( flag ) {
- flag = false; // reset input response flag
- respond......
- }
- })
i can only assume that the jquery wizards will find much amusement in my silly solution and come up with something far better.
thank you all very much.