[英]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()
自.toggle()
起正式將其刪除。 如果您使用的是jQuery的較新版本,則可能會遇到困難。
不推薦使用 : http : //api.jquery.com/toggle-event/
新增 : http : //api.jquery.com/toggle/
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.