View Single Post
Old 01-20-2005, 07:53 AM  
mortenb
Confirmed User
 
mortenb's Avatar
 
Join Date: Jul 2004
Location: Denmark ICQ: 7880009
Posts: 2,203
That seems to be a lot of code to accomplish such a small thing..

Code:
function chkform(form) {
    if(form.usr[0].checked!=true) {
        alert("Please select Yes or No:");
        form.usr[0].focus();
        return false;
    }
}
Just put the [0] part on the name of the radio element in the code.. it just refers to the first radio element with the "usr" name.. if you want to check the second, it would me [1]..
mortenb is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote