You probably defined the div after executing the script.
Wrap it in $(document).ready(function() { .... });
to make sure it runs after the full DOM is available.
In addition, you should get rid of these ugly inline events (if you even need them, you can use :hover
in CSS):
$('div.business-bottom-content').hover(function() { $(this).addClass('business-bottom-content-hover'); }, function() { $(this).removeClass('business-bottom-content-hover'); });
source share