More information about the Underscore mailing list

[_] onBlur/OnChange/witsEnd

Pete Fairhurst pete.fairhurst at gmail.com
Fri Oct 5 16:11:27 BST 2007

Fixed it--here's the solution:

//  Bind 'onchange' function to encapsulating LABEL element
if (navigator.appName.indexOf('Internet Explorer') != -1) {
    tagInputs[i].parentNode.onclick = function() {
        this.firstChild.checked = true;
        updateTag(this);
    }
}
else {
    tagInputs[i].onchange = function() {
        updateTag(this.parentNode);
    }
}

- Pete

_____________________________________________________________________

"Print is dead."

- Dr. Egon Spengler, Ghost Busters (1984)
_____________________________________________________________________