我的提交按钮不起作用


my submit button not working

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>

导致代码中断的问题是,自 jQuery v1.8 以来,您对.toggle()的使用已被弃用,并从 v1.9 开始正式删除。如果您使用的是较新版本的 jQuery,则可能会因此遇到困难。

已弃用:http://api.jquery.com/toggle-event/

新增:http://api.jquery.com/toggle/