$("#savebtn").click(function() {
$('.mytable tr').each(function(){
if($('.mytable tr').length < 1){
alert("Nothing in the table!")
return
}
});
alert("You are still inside the click function")
});
Just having a bit of trouble with this one. I want to exit the jquery each loop AND click function altogether. But 'return' just takes me out of the each loop only. How do I completely exit the click function altogether?