
Originally Posted by
Trinithis
Code:
onchange="function() { ChangeProduct(this.value); SelectionInformation(this, ProductOne); };"
Trinithis, I think that will give an error, or at the very least, since your anonymous function isn't self executing, nothing will happen. If you were assigning the event in javascript, it would be correct if you removed the quotes:
Code:
someElement.onchange=function() { ChangeProduct(this.value); SelectionInformation(this, ProductOne); };
But for assignment as an inline event attribute, it should be like:
Code:
<select onchange="ChangeProduct(this.value); SelectionInformation(this, ProductOne);">
Bookmarks