Scroll to top

How to use inner html value or data in php from javascript(innerHTML)?


Notice: Undefined variable: string in /home/u665484253/domains/wpcodekit.com/public_html/wp-content/themes/twentytwenty-child/functions.php on line 61

inner html value or data in php from javascript(innerHTML)

<html>
<body>

<p id=”demo”>use inner html value in php(innerhtml)</p>

<script>

  var jassi = document.getElementById(“demo”).innerHTML;
//document.write(jassi);

</script>

<?php
$jassi = ‘<script>document.write(jassi);</script>’;
echo $jassi;

?>
</body>
</html>

Get more information

Read More Posts

Leave a Reply

Your email address will not be published.