dispaly contact form 7 with jquery
-
hello,
i have some problem to add the CF7 with jquery in wordpress custom template.i want to change a div content when user click in custom menu:
jQuery(".content_box").click(function(){ var temp = jQuery(this).attr("id"); var txt = ""; switch(temp) { case "fP": txt = "some text"; break; case "eS": txt = '<?php echo do_shortcode('[contact-form-7 id="2134" title="Sans titre"]'); ?>'; break; default: txt = "void"; } jQuery("#content_body").html(txt); });
in the console log of browser i have this alert:
“Uncaught SyntaxError: Unexpected token < “
and this is the link to test:
- The topic ‘dispaly contact form 7 with jquery’ is closed to new replies.