I am trying to call a function when the user clicks on the first item on an unordered list. But it does not seem to work.
This is what I did:
$('#listResults li').first().on('click', function() {
console.log('clicked');
});