mmm.. try this..

Put a border to your div, let's say border: 10px, then click the border to see what happen..


----- Original Message ----- From: "Kris S" <krissauqui...@gmail.com>
To: "jQuery (English)" <jquery-en@googlegroups.com>
Sent: Wednesday, August 26, 2009 7:04 PM
Subject: [jQuery] Click event not working?



I'm trying to execute a function "animate_next()" when a "div" element
is clicked, but it isn't working. Here is what it looks like..

$('#playground').click(function(){animate_next();});

If I put..

$('#playground').ready(function(){animate_next();});

..then it will work fine.

Here is the "div" element on the page..

<div id="playground" style="width: 800px; height: 600px; background:
#666666">

Reply via email to