javascript - Select ONCHANGE for SELECT elements
483
Solution:
You can get a select's value with something like this:
var e = document.getElementById("dimen");
var myDimen = e.options[e.selectedIndex].value;
After that you have to associate the value with some sizes. Eg. 1 will stand for 100 * 90, 2 will stand for 200*120, etc.
Hope this helps.
Answer
Solution:
When you change the select, the page reload. The form get the select and see the selected value, finaly you print the good picture!