i try avoid explorer throws error in srcElement, it does not have this function.I have
function (event) {
if (event.srcElement)
{
valueThis = event.srcElement.getAttribute("value");
}
else if(event.target)
{
valueThis = event.target.getAttribute("value");
}
}
but it doesnt work because InternetExplorer throws error in e.srcElement
If you’re talking about IE<9, the
eventobject is not passed to listener handler as the first argument. Sowill likely “dead” in IE.
A more common way to do this is: