Why isn't the click event working in this code? What am I doing wrong?
$(document).ready(function() {
$('.dashboardList').click(function() {
alert("hello");
});
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="dashboardList unread">
<div class="dashboardList unread">
<div class="dashboardList unread">
<div class="dashboardList unread">
<div class="dashboardList unread">