This piece of code triggers on enter of someClass If the mouse does not have a class of someOtherClass it will execute the //do this code.
$(".someClass").mouseenter(function(e){
if (!$(e.target).hasClass('someOtherClass')){
// do this
}
});