lozina
Lifer
I am working on a dynamic page which creates an element then needs to attach an event to it.
As an example, this is what I did to make a drop down:
el= document.createElement('select');
el.setAttribute('onchange', 'doSomething(this)');
and this works fine in Firefox, but does not work in IE.
What's the simplest way I can get this to work in IE?
As an example, this is what I did to make a drop down:
el= document.createElement('select');
el.setAttribute('onchange', 'doSomething(this)');
and this works fine in Firefox, but does not work in IE.
What's the simplest way I can get this to work in IE?