Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jun 2010
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    validation javascript using type

    hello,
    I have a form which contains multiple inputs with type 'text' and 'radio' buttons, and i'm trying to validate all these fields using javascript.

    Know that the id's and names came from database.

    so i want to validate by type.

    Please anyone help me as fast as possible
    thank you

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,020
    Thanks
    75
    Thanked 4,323 Times in 4,289 Posts
    Not enough details.

    What's the definition of a *correct* text box contents vs. incorrect contents?

    If by "validate radio buttons" you mean you just need to make sure that one of each group is checked, that's trivial. But there are so many ways to validate text boxes (e.g., they must contain names, or money amounts, or email addressses, or phone numbers or zip codes or or or) that we can't begin to guess what you want.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •