I think this is a super basic question, but I'm a little confused.
If I want to take a snapshot of the text-value of a jQuery object that changes its values dynamically, how would I do this?
For example, var text = $('#div').text()
will make text equal to whatever div
's text value is at the moment it is referenced, but I want it to always equal the div
's text value at the instant the expression was set.