How do I access a variable from document ready function in jQuery function?
I have a click function to reset content to its' original state. I have set a variable with the original content in the document.ready function. I am trying to access that variable in a function within the jQuery.function. It fails. Is it possible to do this another way, if at all? If so, how?
The first alert works, the second fails, which proves that the variable is not defined within the jQuery.function block.
Open in new window