90
rated 0 times
[
97]
[
7]
/ answers: 1 / hits: 17189
/ 12 Years ago, thu, april 5, 2012, 12:00:00
On pageload I set a variable
$(document).ready(function() {
var inv_count = 3;
});
When I try to refer to that variable inside functions though, it doesn't work.
function blah(a,b) {
alert (inv_count);
}
Why is this? And how can I get around it?
(rookie here)
More From » jquery