How to pass data (a dropped element) to a jQuery dialog?
<p>This is probably a simple one but I cant get my head around it.</p>

<p>Basically I have a  list that is set up to accept dropped elements. I want a jQuery dialog to display in response to a dropped element and, upon the user pressing OK, post to the server with info regarding said dropped element.</p>

<p>My current problem is that I have to setup the jQuery dialog prior to calling it (in document load) and so have to define the function that runs when Ok is pressed. However I can't access the dropped element at this stage as I don't know what it is.</p>

<p>Currently I am setting some invisible spans to hold the data from the dropped element that I need and reading it back out when the function bound to the Ok runs. Im sure there has to be a better way.</p>

<p>Thanks in advance, and apologies is this question is somewhat confusing.</p>
