$(function() {
    if ( !$(".first.last") ) {
      console.log("div with both first and last classes does not exists")
    } else {
      console.log("it exists");
    }
});
I want to check if a div with both first and last classes DOES NOT exist, but the check fails.
 
     
     
    