I'm trying to figure out how to make this work.
function foo(a) { $('#this-button').show(); } function buttonClicked() { //get access to var a } HTML
<button id="this-button" onclick="buttonClicked();"> This is a simplified version of what I have but the idea is the same.
foo takes a variable, and then makes a button visible. When the button is clicked, I want to do more things with var a.
So like wait until the button is clicked to continue the function?
Can't seem to figure it out.
Thanks