<script type="text/javascript">
$('.pp').click(function() {
alert();
});
</script>
<p class=pp>asdf</p>
<p class=pp>asdf</p>
<p class=pp>asdf</p>
Why the function is not called on click event?
It must be very silly and stupid question, but I don’w know what I’m missing.
Because the DOM hasn’t been loaded yet: