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

Java sticky instances of class com.mysql.jdbc.Field aggregating -