Hello all.
I cannot work out why this doesn't work.
- $(document).ready(
- function(){
- // Actual jQuery goodness that moves the captions
- // Set the default value for the caption
- $('.boxcaption').live('click',
- function(){
- console.log(this);
- }
- );
- }
- );
When I run the following and click on a .boxcaption element. It returns the this value 15 times, once for each .boxcaption that is on the page. I only want to return one value, which is the one I have clicked on.
What am I doing wrong?