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);
   }
}