I am creating a plugin for Jquery and need to have a variable as a key in an object.
$(selector).animate({self.settings.direction: '+='+self.displacement+'px'}, "slow" , function () {});
this part causes the error:
self.settings.direction
any ideas where my syntax is wrong? thank you