Hello All,
I just want to reset autofill from checkout page when page is loaded using jQuery in magento2
Problem solved? Click Kudos & Accept as Solution!
Solved! Go to Solution.
You can simply reset the form as given below.
jQuery(document).ready(function(){ setTimeout(function(){ jQuery('#form_id').trigger("reset"); },1000); });
I have set the timeout of 1 second so it can get the element properly on the checkout page.
You can simply reset the form as given below.
jQuery(document).ready(function(){ setTimeout(function(){ jQuery('#form_id').trigger("reset"); },1000); });
I have set the timeout of 1 second so it can get the element properly on the checkout page.
No Great! as the loader can take more then 1000s to load and it won't work, I've had issue with this scenario when sometimes works sometimes don't that means increasing the timeout. Anyone knows a better proper magento option for this?