I am using jQuery to set a click event for a number of elements that share the same class but different IDs. However, I need to be able to get these IDs. Is there a way to do this?
$(".buynowlink").click(function(item) {
});
From what I researched; 'item' is the element being triggered. Im not sure how to get the Id of the object.