Radio.click() : Radio Button : Form JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Form » Radio Button »

 

Radio.click()







The click() property simulates a mouse click on the radio button.












<html>
    <head>
    <title> Example of the radio click property</title>
    </head>
    <body>
    By pressing the "Simulate Click" button below,  box becomes checked
    because a simulated mouse click is performed.
    <form name="form1">
    <input type="radio" name=button1 CHECKED>Box 1
    <br>
    <input type="radio" name=button2>Box 2
    <br>
    <input type="button" value="Simulate Click" onClick='document.form1.button2.click()'>
    </form>
    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Form
» Radio Button