I need help with a specific issue on my website.
Visit this link
On the webpage, there is a button labeled "get a quote". When users click on this button, I want them to be redirected to google.com.
I attempted to achieve this using the following JavaScript code:
jQuery(function($) {
$(".wpcf7-form-control.wpcf7-submit").click(function() {
window.location = "www.google.com/index.php?id=";
});
});
However, after clicking the button, the generated link looks like this:
http://dgprint.dg-site.com/www.google.com/?id=
I am using Wordpress plugin "Contact form 7" and cannot figure out why it's not working as expected. Any advice would be greatly appreciated!
Thank you in advance for your assistance.
EDIT:
<div class="contact-frm">
<div class="right">
<?php echo do_shortcode('[contact-form-7 id="9" title="get a quote"]'); ?>
</div>
</div>
EDIT2:
<p><input type="submit" value="get a quote" class="wpcf7-form-control wpcf7-submit"><img class="ajax-loader" src="http://dgprint.dg-site.com/wp-content/plugins/contact-form-7/images/ajax-loader.gif" alt="Sending ..." draggable="false" style="visibility: hidden;"></p>