0

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.

Community
  • 1
  • 1
fpilee
  • 1,918
  • 2
  • 22
  • 38

1 Answers1

0

solved with..

$(window).load(function(){
[code]
}
fpilee
  • 1,918
  • 2
  • 22
  • 38