The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

forcing onChange()

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.