Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Internet & the Web (https://www.askmehelpdesk.com/forumdisplay.php?f=177)
-   -   Javascript radio button mandatory text validation (https://www.askmehelpdesk.com/showthread.php?t=268129)

  • Oct 11, 2008, 05:45 AM
    darryl333
    Javascript radio button mandatory text validation
    Hello. Could you please help me with some javascript. In a section of my form, I want two radio buttons. When neither button is checked, an alert box will appear. If the first button is checked the form will pass. If the second button is checked, a series of mandatory text boxes are highlighted and must be validated before the form will pass.
    Good luck and thanks
    Darryl333
  • Oct 11, 2008, 07:28 AM
    vingogly

    The set and unset functions will let you manipulate your radio button functions dynamically:

    Check Boxes and Radio Buttons

    And here's an example that illustrates how to show/hide a hidden form field when another is clicked:

    Show/Hide form field selecting a radio button option | frinity

  • All times are GMT -7. The time now is 10:54 AM.