Detect programmatical changes on a html select box
问题 Is there a way to make a HTML select element call a function each time its selection has been changed programmatically? Both IE and FF won't fire 'onchange' when the current selection in a select box is modified with javascript. Beside, the js function wich changes the selection is part of framework so I can't change it to trigger an onchange() at then end for example. Here's an example: <body> <p> <select id="sel1" onchange="myfunction();"><option value="v1">n1</option></select> <input type=