Click Event in IE6

Click Event in IE6

Hi Folks!

I got serious problems with Click Event and Internet Explorer 6.0.

  1.     $(function() {        
  2.         $("#button").click(function() {
                $("#layer").animate({
                    marginRight: 800,
                    marginTop: 520,
                    width: '150',
                    opacity: 0,
                    height: '150'           
                },800, function() {
                    $('.otherlayer').hide();
                });
            });
        });                      










The Call of the Function looks like

  1. <span class="but" id="button"><img src="image.jpg" /></span>
The Problem is - in Firefox everything works fine, but in IE nothing happens. I searched in the Forum but I didn't found a solution :)

I would be happy for any answers... Thank you!

Greets