The following is a part of my code :
$.post("checkbuddy.php",function(data){
if(data!="a"){
$("#Layer15").css({ visibility: 'visible'});
$("#Layer10").css({ visibility: 'visible'});
$("#Layer10").html(data);
}
});
The condition if(data!="a") doesn't seem to be working, as checkbuddy.php returns "a". And what happens is that the HTML of Layer10 changes to "a", and thus the text shown is "a". This shouldn't be happening should it?