$("#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 checking that I do fails if the data is empty and displays an empty message. I need to fix this. Any ideas?