jquery to check if returned data object is empty
- by user253530
$("#post").live("click",function()
{
$("input:checkbox[name='bookmarkid']:checked").each(function()
{
$.post("php/socialbookmark-post.php", {bookmarkID: $(this).val()},function(data)
{
if(data != "") alert(data);
});
});
});
the php file outputs some text only if something goes wrong. The…