basically I have a list that is being dynamically added to via JavaScript.

just like a bill of materials, I need to re-assess the total after each element has been added to the select box.

I tried "onChange" but that is too generic, and is run by every change

I thought about a simple state machine too, where I see if the number of options is different than it last was, but I don't know how to go about implementing something like that in JavaScript.

Anybody have any ideas?