Possible Duplicate:
How to use javascript variables in jquery selectors
I have this code
var commentid=123456
var signature=($("#commentid_" + commentid).attr("data"));
but. It doesnt work... i get undefined.
Possible Duplicate:
How to use javascript variables in jquery selectors
I have this code
var commentid=123456
var signature=($("#commentid_" + commentid).attr("data"));
but. It doesnt work... i get undefined.
solved with..
$(window).load(function(){
[code]
}