so I have this script that adds what is in the list box into the textfield. What the problem is, is it’s not working when i define which textbox to set it to in the listbox code. Here’s the code:
function insertChar(objList, theLoca){
if(intSelected!=0){
if(isIE&&!isMac){
objList.form.theLoca.focus();
var strRange=document.selection.createRange();
var strChar=objList.options[intSelected].value;
strRange.text=strChar;
}else{
objList.form.theLoca.value+=objList.options[intSelected].value;
}
objList.selectedIndex=0;
theLoca.focus();
}
}
and here’s the listbox:
<select class=”char” tabindex=”-1″ onChange=”insertChar(this, ‘thearea’)”>
<option selected value=””>Symbols</option>
<option value=”®”>® R Mark</option>
<option value=”©”>© Copyright</option>
<option value=”™”>™ Trademark</option>
</select>
thearea is the name of the textfield
what is causing it to not work?