My Board - Donation Page
However, when you add anything 10+ it gives an error. Can anybody figure out why its doing this? The problem seems to be that its only reading the first digit, so if you have anything from 10 to 49 it will give an error, but when you get to 50 its fine again.
function validate_form ( )
valid = true;
if ( document.donation_form.amount.value < "5" )
alert ( "Please enter a minimum of 5 USD." );
valid = false;
Try removing the quotes from around the "5". Normally, it should not matter, but you are treating it as a string rather than a numeric value. It's a good idea to leave the quotes off of numeric values.