I am using an ajax call.Is the results are not null then I need to show a div otherwise I need to hide that div.For that I used following code
if(results == null)
$('#divId').hide();
Here if the results are null then the div going to be hide.It is working fine.But when I need to show the div in a different function again I need to use
$('#divId').show();
So what I want is I need to hide only results are null.
But I need to show the div in all remaining cases.Is there any elegant way to do that.
Thanks in advance..