Jump to content

how can i check to see if a radio button was given input?


jwk811

Recommended Posts

You're welcome, glad it helped.  It just dawned on me this morning that I could have set paymentType to isValid at first and saved the if statement before the switch, but like I said, it was only meant to get you started with your own ideas.
Well, let's say you named them email1 and email2, you could do something as easy as [code]if (document.frmCheckout.email1.value != document.frmCheckout.email2.value) alert("Emails do not match.");[/code]  I'd suggest just initializing a variable, say errMsg, and adding specific information to it for each error encountered, and then spitting them all in one alert at the end.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.