Is there a leave field event or field on blur?
Is there a leave field event or field on blur?
Right now my code looks like this:
$( 'input', editor.field('account_name').node() ).on(
'click', function () {
But instead of a click i'd like the event to be when i finish editing the field above "account name".
Is there a way to accomplish this?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Is it the
blur
event you are looking for?Or something else? The only problem with
blur
is that the user might not leave it to edit another field before submitting the form (they might just hit enter for example) - but that is the trouble with knowing when the input has finished!Allan
Perfect, thanks for your quick answers!