Please help me in this weird situation.
This is the first time I see, when else{} does not work after if(){}. =)))
onClick="$.post('itemupdate.php', { itemname: 'test' }, function(data) { if(data.status == 'error'){alert('error')} else {alert('OK')} }, 'json');"
Alert ‘OK’ never shows up. Everything else is in order.
Just made an output called ok!
now things works!