SitePoint Sponsor |
|
User Tag List
Results 1 to 1 of 1
-
Jul 16, 2008, 15:06 #1
help with passing value to jquery
I have a value stored in an object, and now i want to pass it to a jquery function, please help:
Code JavaScript:var obj = { width: 300, div: 'testdiv', func: function () { var newwidth = this.width; $('#'+this.div).animate({width:newwidth+'px'}, 1000); } }
Bookmarks