I Have A problem In displaying JS Code In PHP
My Code Is
<?php
if($result)
{
echo '<script language="javascript">';
echo "$('#Err').hide()</script>";
}
else
{
echo '<script language="javascript">';
echo "$('#Err').show()</script>";
}
?>
I Am Using XAMPP For running Code When I Run This Code It Will Not Display
I Don’t know what’s the problem
plz tell me
Thanks!
You have to escape the
$sign as follows: