Pedro Bronze
Pedro Bronze

Reputation: 11

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

I'm guessing my function is maybe overrinding my form?

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>

Upvotes: 0

Views: 71

Answers (1)

mhodges
mhodges

Reputation: 11116

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. If you are using a newer version of jQuery, you might be experiencing difficulties as a result.

Deprecated: http://api.jquery.com/toggle-event/

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

Upvotes: 1

Related Questions