Quick Search:
 
 JavaScript: Check radio button selection Jump to:  
Category: >> JavaScript >> Check radio button selection  

<< lastnext >>

Snippet Name: Check radio button selection

Description: Make sure a radio button is selected.

Comment: (none)

Language: JAVASCRIPT
Highlight Mode: JAVASCRIPT
Last Modified: February 27th, 2009

    VAR radios = document.forms.myform.elements.mychkboxes;
    FOR(VAR i=0; i<radios.length; i++){
        IF(radios[i].checked) RETURN TRUE;
    }
    ALERT('Please select a category for this game.');
    RETURN FALSE;


 
   Home |    Search |    Code Library |    Sponsors |    Privacy |    Terms of Use |    Contact Us © 2003 - 2024 psoug.org