it's local to that event if you need it globally
var pen = {}; $(function(){ pen = { type: "Ballpoint", color: "blue", hasInk: true } }); would allow you to reference "pen" from anywhere in your code On Oct 24, 8:01 pm, donb <falconwatc...@comcast.net> wrote: > You can't. It exists for the duration of the ready function, then > it's gone. > > On Oct 24, 7:51 pm, Nikola <nik.cod...@gmail.com> wrote: > > > Hi, I've been trying to understand a little tidbit of jQuery here... > > > Lets say we define an object in the Document "ready" method: > > > $(function(){ > > > var pen = > > { > > type: "Ballpoint", > > color: "blue", > > hasInk: true > > } > > > }); > > > Where in the DOM can we find the pen object?