Call a Javascript function within an inline statement
<p>Quick question: It's kind of tough to describe so let me just show an example.</p>

<p>Is there anyway to do this: (I'm using jQuery but this is a general javascript question)</p>

<p>$('div.element').offset().x;</p>

<p>$('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.</p>

<p>Thanks!
Matt</p>
