jimmythegeek
Programmer
This may be elementary, or a stupid question, but why would the following function always return true even if cboOfferResult_? = acc?
numOfOffers and acc are variables set earlier in the code (numOfOffers = 2, and acc = 1)
====================================
function acceptedOffers () {
var retval = false;
for (i=1; i<=numOfOffers; i++) {
if (document.getElementById("cboOfferResult_" + i).value == acc) {
retval = true;
}
}
return(retval);
}
====================================
Thanks for any input in advance.
Jim Lunde
compugeeks@hotmail.com
We all agree your theory is crazy, but is it crazy enough?
numOfOffers and acc are variables set earlier in the code (numOfOffers = 2, and acc = 1)
====================================
function acceptedOffers () {
var retval = false;
for (i=1; i<=numOfOffers; i++) {
if (document.getElementById("cboOfferResult_" + i).value == acc) {
retval = true;
}
}
return(retval);
}
====================================
Thanks for any input in advance.
Jim Lunde
compugeeks@hotmail.com
We all agree your theory is crazy, but is it crazy enough?