$('table').on('hover', 'td', function () { var selector = $('selector_in_td', $(this)); if (selector.length > 0) { //Your code } });