Hi Rajesh,
since the pre tag with attribute lang equal to php seems to make some unwanted modifications concerning double quotes I'll post my answer with lang equal to text (not so nicely fomatted but what you read is what I wrote :) ):
<script type="text/javascript">
function HideDiv(id)
{
document.getElementById(id).style.display="block";
}
</script>
if($Acidity=="Acidity")
{
echo "Raj";
echo "<script type='text/javascript'>HideDiv('Acidity');</script>";
}
There are two issues I found in your code:
1. Script tag's attribute to select scripting lanuage is called type
and takes "text/javascript" for javascript code.
2. Function you wrote is named HideDiv(id) you called a function called HideDive(id).
I hope you get it to work with these corrections!
Best Regards,
Manfred
PS: The function should be called ShowDiv if its semantic is to reveal the div and not to hide it.