Javascript 如何修复WordPress跨浏览器兼容性?
我将WordPress主题集成用于预订表单,但它在iOS设备上不起作用。单击submit按钮时,它只是刷新当前页面 关于如何修复这个错误有什么想法吗 我希望代码会添加到工作罚款的预订表中 请访问“”尝试此代码Javascript 如何修复WordPress跨浏览器兼容性?,javascript,php,jquery,wordpress,html,Javascript,Php,Jquery,Wordpress,Html,我将WordPress主题集成用于预订表单,但它在iOS设备上不起作用。单击submit按钮时,它只是刷新当前页面 关于如何修复这个错误有什么想法吗 我希望代码会添加到工作罚款的预订表中 请访问“”尝试此代码 $('.btn-send').on('click', function(e){ setTimeout(function() { /* with this line, I pretend to disable both buttons in order to prevent
$('.btn-send').on('click', function(e){
setTimeout(function() {
/* with this line, I pretend to disable both buttons in order to
prevent the user click them while the form is submitted */
$('.btn-modal').attr('disabled', "disabled");
/* show the gift image */
$('.waiting').fadeIn('fast');
}, 1);
});
希望它对你有用你正在使用任何表单插件吗?不,它的主题在build表单中