In the code below, the for loop runs the proper number of times.  However, I 
cannot output the value of stArray[i].  What am I doing wrong.

TIA for any help.

function addState(st) {
 var stList = opener.document.CFForm_1.states.value;
 var stArray = stList.split(',');
 var newStList = "";
 var count = 0;
 for(i=0;i<stArray.length;i++) {
        if(stArray[i] != st) {
                newStList = newStList + st + ",";
        }
 }
        opener.document.CFForm_1.states.value = newStList;
        opener.showStates();
}

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:33:2300
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/33
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:33
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.33
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to