For some reason this code doesn’t work in IE9 (could not try other versions of IE). When tried it worked fine in Chrome and Firefox.. Text boxes comes up with message "undefined" when a drop down item is selected.
I am not able to figure out whats wrong, I wanted this working primarily in IE9… Any help is greatly appreciated..
printColorAndGroupwith a}.onchangefunction, you can pass the select withthis. Soselect.options[...]would then be possible and cleaner.[0]each time.Altered version: http://jsfiddle.net/pimvdb/RemPF/1/
This is a literal object notation:
This is how IDs work:
And you can fetch the element with:
This is how passing the select works:
with the following JavaScript: