Hi,
I think this is just an obvious problem that I can't spot because I've been staring at code too long today. I have this callback as part of a JQuery POST:
function(data){
if(data == 'yes') {
$('div.done').show();
} else if(data != 'yes') {
$('div.error').show();
alert(data);
}
});
I get the error div shown, yet in the alert all I get is yes. Anyone got any pointers (as I said, I imagine it's some really obvious mistake that I've missed).
Thanks