validating radio buttons

Discussion in 'JavaScript' started by charmsqueen, May 6, 2006.

  1. #1
    i have created a script in php/mysql to update to a database table.the rows are listed ...and alongside each row i have submitted a radio button ...after selecting one radio button and clicking the update button which is given on the top,it goes to next page to update....

    i want to ensure that atleast one radio button is clicked...if not i would like to show an error message when the user clicks the update button...

    won't radio button validation work like <select> tag validates...i tried but it isn't working...so any ideas???thanks in advance....
     
    charmsqueen, May 6, 2006 IP