Hi,
I am getting the problem when i used the php code inside javascript. i,e
Above code works fine and give the alert message when page will loaded.
i have modified that above code like that
It didn't worked and didn't give any alert message. Anybody Could please tell the solution to my problem.
Thanks
Swetha
I am getting the problem when i used the php code inside javascript. i,e
Code:
<? $description=<p><strong>This is Test1</strong></p><p><strong>This is Test2</strong></p> ?> <script> alert('<?=$description?>'); </script>
i have modified that above code like that
Code:
<? $description=<p><strong>This is Test1</strong></p> <p><strong>This is Test2</strong></p> ?> <script> alert('<?=$description?>'); </script>
Thanks
Swetha
Comment