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");
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");
Copyright © 2021 Jogjafile Inc.
If the container is a
tr
, you need to reference atbody
ortd
element instead, because thetr
is implicitly wrapped by atbody
. Thetd
is the element that receives the click before the delegation occurs.