简体   繁体   English

我的提交按钮不起作用

[英]my submit button not working

http://investinlisbon.ml/ So i've my little form on top of the page (button call me back!), but my submit button (Send) stopped working http://investinlisbon.ml/所以我在页面顶部放了我的小表格(按钮叫我回来!),但是我的提交按钮(发送)停止工作

I'm guessing my function is maybe overrinding my form? 我猜我的功能可能覆盖了我的表格?

JS 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 的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>

The issue causing your code to break is that your usage of .toggle() has been deprecated since jQuery v1.8 and officially removed as of v1.9. 导致代码中断的问题是,自jQuery v1.8起已弃用.toggle().toggle()起正式将其删除。 If you are using a newer version of jQuery, you might be experiencing difficulties as a result. 如果您使用的是jQuery的较新版本,则可能会遇到困难。

Deprecated : http://api.jquery.com/toggle-event/ 不推荐使用http : //api.jquery.com/toggle-event/

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM