Hi, me again(!)
Umm, does anyone know of a way of forcing the onChange() event of a control (it happens to be a <SELECT> if that is relevant) to fire off? (That is apart from the obvious one of changing the value with the mouse / keyboard!!!!)
I have some code which alters the currently selected element in a list and I need the list's onChange to then be fired off. The code is designed to work with many different lists, so I can't hard-code the same functionality into my code that is normally provided by the onChange.
I've tried ....element.onChange() and .....element.Change() but neither of these seem to work.
Never mind, found the answer!
Turns out you need to use ....element.onchange()
Bloody case sensitivity!
yup, onchange() is what it is, all event handlers are lowercase, (like in the XHTML spec ;))