/* calltouch callback */ try { var phone = $(this).find('input[name="phone"],input[type="tel"]').val(); if (!!phone) { var phone_ct = phone.replace(/[^0-9]/gim, ''); if (!!phone_ct){ if (phone_ct[0] == '8') {phone_ct=phone_ct.substring(1);} if (phone_ct[0] == '7') {phone_ct=phone_ct.substring(1);} phone_ct= '7' +phone_ct; window.ctw.createRequest(‘form_chery’, phone_ct, [], function(success, data){ console.log(success, data); } ); } } } catch (e) { console.log(e); } /* calltouch callback */