Hi,
This is the code (in its entirety) that I'm running
if (strpfid == comparestring) {
I keep getting told that it's expecting ';' on the line saying:
if (strpfid == comparestring) {
Any ideas anybody?
This is the code (in its entirety) that I'm running
Code:
function tdarray(texttext, valuetext){
this.texttext = texttext;
this.valuetext = valuetext
}
function ChangetdTo(strpfid){
var copyofarray;
var tdtypes=new Array(tdarray);
for (i=0;i < document.setfilters.td.length - 1;i++){
tdtypes[i] = new tdarray(document.setfilters.td[i].text, document.setfilters.td[i].value)
}
copyofarray = tdtypes;
var j=0;
for (i = 0; i<tdtypes.length; i++) {
var comparestring = tdtypes[i].valuetext.substr(0,2);
Code:
var option + j = new Option(tdtypes[i].texttext, tdtypes[i].valuetext);
j = j+1;
}
}
for (i=0; i<j; i++) {
eval("inForm.td.options[i]=option" + i)
}
history.go(0)
}
I keep getting told that it's expecting ';' on the line saying:
if (strpfid == comparestring) {
Any ideas anybody?