[jQuery] Binding a Click Event to Anchor Tag

2007-08-30 Thread Giant Jam Sandwich
I used to be able to do this: $("a").click(function(){ alert("test"); return false; }); test It no longer works in Firefox. I read some other posts that seem to be discussing the same thing, but nothing definitive. Bind does not work either. However, if I change click to mouseover, then i

[jQuery] Binding a click event

2007-05-20 Thread MikeR
Just a quick question =). I want to bind an event handler to "body" so that whenever someone clicks anywhere on the body, a DIV disappears. However, there is a specific graphic (that has an id) that I need to be ignored in that click handler. I haven't been able to come up with an elegant solutio