jquery: $.post success handler does not take else {}
<p>Please help me in this weird situation.
This is the first time I see, when else{} does not work after if(){}. =)))</p>

<pre><code>onClick="$.post('itemupdate.php', { itemname: 'test' }, function(data) { if(data.status == 'error'){alert('error')} else {alert('OK')} }, 'json');"
</code></pre>

<p>Alert 'OK' never shows up. Everything else is in order.</p>
