Click event failing on div in jQuery
You probably define the div after the script has executed.
Wrap it in $(document).ready(function() { .... });
to ensure it executes after the full DOM is available.
Additionally you should get rid of those 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');
});
You can try this for div class have to mention "."
$(".business-bottom-content").click(
function()
{
alert('ashutosh mishra');
});