Jquery Onclick and reference to the object clicked

click, jquery

Solution

Use

$(this)

Problem

I've got the following jQuery expression, Inside the function I need a reference to the object that was clicked, is there a way to do this? ``` $('#tagList li').click(function() { /* contents */ }); ```

Original source