$(".vote").click(function(){
var id = this.id;
});
The ID is accessible directly from the element. There’s absolutely no need to use a jQuery method.
$(".vote").click(function(){
var id = this.id;
});
The ID is accessible directly from the element. There’s absolutely no need to use a jQuery method.