Submit form on blur event #350
Answered
by
jiripudil
discordDOTtest
asked this question in
Support
-
Hi, I'm learning how to use Naja. I use this code to submit form on blur by Naja
It works. I have this question: is it legit or not to submit "naja ajax" form like this? |
Beta Was this translation helpful? Give feedback.
Answered by
jiripudil
Dec 29, 2021
Replies: 1 comment 1 reply
-
Hi, sure. Naja has helper methods to submit a form or programmatically "click" an element, but what you're doing is absolutely fine too as long as it dispatches the click event for Naja to pick up. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
discordDOTtest
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, sure. Naja has helper methods to submit a form or programmatically "click" an element, but what you're doing is absolutely fine too as long as it dispatches the click event for Naja to pick up.