jquery - alerting simple value from js variable -


i'm trying alert value of javascript variable this

var id = $(this).attr('id');  alert(id.valueof()); 

but alerting object object i'm sure id should contain 1 digit number.

what i'm doing wrong here?

try

alert(id); 

instead of

alert(id.valueof()); 

Comments

Popular posts from this blog

matlab - How to equate a structure array to structure array -

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -