M
M
Maxim Kononov2018-02-21 13:00:26
JavaScript
Maxim Kononov, 2018-02-21 13:00:26

How to peted in .html() php tag?

You need to pass php tag to html

$('#calculator').html('<?' + 'php echo do_shortcode(ot_get_option("form4")); ?>');


But it goes like this

<!--?php echo do_shortcode(ot_get_option("form4")); ?-->


How to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita, 2018-02-21
@Rema1ns

$('#calculator').html('<?php echo do_shortcode(ot_get_option("form4")); ?>');

This is if js is in the php file

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question