Skip to content

magento2.2

Auto Added by WPeMatico

Magento2.4.6: setTimeout() doesn’t work on server on checkout page but its working on local checkout page, whats the reason?

Here is the code <script> require([ “jquery” ], function($) { ‘use strict’; $(document).ready(function () { setTimeout( function(){ let telephone = $(‘input[name=”telephone”]’); telephone.keypress(function() { console.log(“Formatting phone number with keypress”); telephone.attr(‘maxLength’, ’13’); telephone.attr(‘minLength’, ’13’); telephone.addClass(‘validate-phone-13’); telephone.attr(‘type’,’tel’); let x = $(this).val(); x =… Read More »Magento2.4.6: setTimeout() doesn’t work on server on checkout page but its working on local checkout page, whats the reason?