Hey all,
Quick question: It's kind of tough to describe so let me just show an example.
Is there anyway to do this: (I'm using jQuery but this is a general javascript question)
$('div.element').offset().x;
$('div.element').offset() by itself will return {'x' : 30, 'y' : 180}, so I'm just wondering if there is any compact way of doing this without creating an extra variable.
Thanks! Matt