[thelist] javascript comparison

Roger Ly evolt at matchpenalty.com
Wed Oct 29 12:33:04 CST 2003


> Is there a way I can cast values in javascript?

Rob,

How about parseInt()?

var prevBid = parseInt(bid.previousbid.value);
var nextBid = parseInt(bid.nextbid.value);

if (prevBid > nextBid) {
	...
}

Roger
 



More information about the thelist mailing list