Thursday, November 13, 2008
Javascript tagName and labels
First of all, tagNames are always UPPERCASE! Secondly, when an event listener (onclick) is registered to an element, containing a label with its 'for' attribute set to a valid input id, click on that label will result in two events being fired: one for the label and one for the appropriate input.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment