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

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -