Hi
Please help me on the below issue, how can we can get the <span id='newText'></span>
value in php. i am not able to get the value in php variable.
<html>
<head>
</head>
<body>
<script type="text/javascript">
function changeThis(){
var formInput = document.getElementById('theInput').value;
document.getElementById('newText').innerHTML = formInput;
}
</script>
You wrote: <span id='newText'></span> <br>
<br>
<?php
echo $stri = addslashes("<span id='newText'></span>");
?>
<input type='text' id='theInput' value='Write here' onChange='changeThis()' />
</body>
</html>