我的提交按钮不起作用

问题描述:

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> 
+1

'$( '#1101')'*嗯... *。我不认为CSS ID可以是完全数字的或以数字值开始。 –

+0

是的,我会改变这一点,但这不是它造成的问题,我已经改变了我几次了。 –

+0

如果这是一个PHP的问题,使用错误报告http://php.net/manual/en/function.error-reporting.php - 和/或如果这是一个JS问题,请检查您的控制台,并确保jQuery库加载。看看你的HTML源代码并使用var_dump()。 –

导致你的代码破解的问题是,你的.toggle()使用以来一直jQuery的V1.8弃用,为V1.9正式删除。如果您使用的是更新版本的jQuery,则可能会遇到困难。

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

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