How to get the value of this.id in string? [duplicate]

just Concatenatewith d like this

$('.divclasss').click(function(){

console.log('d'+ this.id); //clicki25 , clicki26 based on the clicking element

});

Leave a Comment