http://investinlisbon.ml/ 所以我在页面顶部有我的小表格(按钮给我回电话!),但我的提交按钮(发送)停止工作
我猜我的函数可能覆盖了我的表单?
JS
$('#cmb-button').toggle(function() {
//this will happen when your mouse moves over the object
$('#cmb-button2').css({
"display": "none"
});
$('#cmb-button3').css({
"display": "inline"
});
}, function() {
//this is what will happen when you take your mouse off the object
$('#1101').css({});
});
PHP
<div id="cmb-button" class="cmb">
<div id="cmb-button2">
<button type="button" id="buttoncontact">
Call me back!
</button>
</div>
<div id="cmb-button3">
<?php
echo do_shortcode( '[contact-form-7 id="1101" title="Call Back PT"]' );
?>
</div>
</div>
最佳答案
导致您的代码中断的问题是您对 .toggle()
的使用自 jQuery v1.8 以来已被弃用,并从 v1.9 正式删除。如果您使用的是较新版本的 jQuery,您可能会因此遇到困难。
关于javascript - 我的提交按钮不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35656238/