86
rated 0 times
[
91]
[
5]
/ answers: 1 / hits: 65194
/ 15 Years ago, sun, june 28, 2009, 12:00:00
Functions come up as undefined if I place them in the document.ready() function:
$(document).ready(function(){
function foo()
{
alert('Bar');
}
});
foo(); // Undefined
Why does this happen? I'm sure I'm just in need of some simple understanding :)
More From » jquery