...

View Full Version : Code does not work in Internet Explorer, but it does in FireFox



dudeman456
08-19-2005, 10:54 PM
This is code allows for what is selected in Drop-Down boxes to appear in a text box next to it, if they select a second thing, it will also appear in that text box, it works in Firefox, but not Internet Explorer.

<script>
function addOption(x,x2) {
sOption=document.getElementById(x2).value;
sOptions=sOption.split("\n");
if (sOption == '') {document.getElementById(x2).value=x+"\n";}
else { if (sOptions.length > 1) {document.getElementById(x2).value=sOption+x+"\n";}
else {document.getElementById(x2).value=sOption+"\n"+x+"\n";}
}
document.getElementById(x2).focus();
}
</script>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum