i have this code:
var current;
startOff = $('#all').offset(),
offString = "{top :"+ startOff.top +", left :"+ startOff.left + "}";
current.css(offString);
When "offString" is alerted its fine - eg {top: 123, left: 342}
BUT it doesn't seem to like it, but when the alerted output is added into current.css() inplace of offString, the element is positioned as it should be.