1

I am using YUI 3.3.0. Event delegation not working in FF2. Any clue ? Thanks in advance.

container.delegate("click", function(e) {

  alert("hi");

  //alerts except in FF2

},"td, li");
Aneesh
  • 1,193
  • 3
  • 16
  • 26

1 Answers1

0

If the container is a tr, you need to reference a tbody or td element instead, because the tr is implicitly wrapped by a tbody. The td is the element that receives the click before the delegation occurs.

Paul Sweatte
  • 24,148
  • 7
  • 127
  • 265