Uncaught TypeError: object is not a function

Hi all

I have a jsfiddle here - http://jsfiddle.net/aN665/

Really simple I have a group of button that I’m trying to add an click event to in a loop but I’m getting the error

Uncaught TypeError: object is not a function in the console

What does this mean, how do I do this ??

Ok so I’ve got it working with just Javascript and no jQuery - http://jsfiddle.net/7Cmrx/

I know it will alert 4 for all - I can fix that

I’m still unsure why the original jQuery didn’t work

Hi,

The reason the original fiddle didn’t work is that you forgot to include jQuery (which you do in the top left hand corner under “frameworks and extensions”).

The error I get is:

Uncaught ReferenceError: $ is not defined 

where are you seeing:

Uncaught TypeError