On Mar 20, 7:55 pm, "Tom Cole" <tco...@gmail.comwrote:
Whilst I have no immediate need for it, I've noticed that if a select
element is changed via setting the selectedIndex value, it does not
fire an onchange event. Is there any reason for this?
At least for IE there is:
http://msdn.microsoft.com/workshop/a...s/onchange.asp
"The onchange event does not fire when the selected option of the
select object is changed programatically."
I don't remember if it is some standard DOM interface feature or a
"default common behavior" of all browsers. From the practical point of
view it is not so relevant though.
Both IE 6 and FF 2 behave the same in regards to this.
Yes, see above.
Is it the developers responsibility to fire this event in such a
situation?
I'm afraid so. And remember that custom events do not propagate
(bubble) so you have to fire them for each event consumer separately.