Passing Dynamic jQuery variable between same-page functions
<p>I've read several questions about using a variable in multiple functions by making it global (defining it outside of a funciton)... however, I have a function that produces a dynamic value on click (gets an href value of a link) - </p>

<p>I need to pass that resulting variable into another function.</p>

<p>Basically, I'm grabbing a clicked link's href value and then wanting to pass it to Ajax if a confirmation box is selected.</p>

<p>It doesn't seem that declaring the variable globally would work, as it's definition comes only if an onclick event is triggered.</p>

<p>Any thoughts?</p>
