I have a payment field on a form that is numeric only allowed. The default value of the field is 0.00
If I enter a dollar figure in then I decide to clear it out then the field will be blank. How do I always keep 0.00 in the field only if it's blank. I used an onblur but my code won't work.
function DAmount() {
if (DollarAmount == "")
{
DollarAmount == "0.00"
}
}
onblur="DAmount()
If I enter a dollar figure in then I decide to clear it out then the field will be blank. How do I always keep 0.00 in the field only if it's blank. I used an onblur but my code won't work.
function DAmount() {
if (DollarAmount == "")
{
DollarAmount == "0.00"
}
}
onblur="DAmount()