Link to home
Start Free TrialLog in
Avatar of tr5
tr5

asked on

How to pass parameters to an onchange function for an element dynamically created with the DOM?

Hi
I create a <select> element like this:
var selectList=document.createElement("select");
selectList.id='exh_list';
selectList.onchange=function(){processExh();}
etc

The problem is that I need to pass some parameters to processExh() when the onChange fires. How do I so this?

Thanks
tr5
ASKER CERTIFIED SOLUTION
Avatar of kevin_u
kevin_u
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial