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>
Read More Posts
- How to add button next to add to cart button in shop page in woo-commerce?
- How to redirect user on different page accounding to user (Customer, editor, admin, subscriber and etc) on wordpress dashboard?
- How to link css,jquery and ajax with all files via one wordpress function?
- How to remove required attribute from text field with jquery?
- How to accept image extension from url in php?