skip to Main Content

why using blur event instead of submit for form data submission? – Shopify

I was reading klaviyo's integration guide. The javascript it is using to submit form data is: <script type="text/javascript"> $("input[name='contact[email]']").on('blur', function(e) { e.preventDefault(); var email = $(this).val(); var settings = { "async": true, "crossDomain": true, "url": "https://manage.kmail-lists.com/subscriptions/external/subscribe", "method": "POST", "headers": {…

VIEW QUESTION
Back To Top
Search