|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
javascript and radio buttons !
Hi all,
I'm not able to validate if the user has checked a radio button or not. This is mainly because I'm not able to pass my form and my radio gropu to my validate.js file. This is what I have in my form <form> <tr> <td> <input name="radio1" type="radio" value="Apple"></td> </tr> <tr> <td> <input name="radio1" type="radio" value="Orange"> </td> </tr> </form> <script type = "text/javascript"> document.myForm.onsubmit = chkmyFormSubmit; </script> Now in my validate.js file, I'm not able to retrive the radio group through getElementsByName. I'm not sure how exactly to loop thru it. Can someone please help me out ? Thanks |
![]() |
| Viewing: Dev Shed Forums > Web Site Management > Scripts > javascript and radio buttons ! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|