I have this li:
<
li class=
"clickable editfaq" id=
"edit-type_searches">Edit this FAQ</
li>
and with this code, I try to get the id of that li.
- $('.editfaq').click(function() {
alert($('this').attr('id'))
})
But the alert always returns 'undefined'.
What am I doing wrong?