Wednesday, May 16, 2012

Reset Selected Radio Button using JavaScript

You could use JavaScript to reset a selected radio button and test if a value is required on update. 

Here's a description of running JavaScript in the IE Developer Toolbar to clear a radio button for a web app or web site.
  1. View page source and search for radio to find the element name where checked = True
  2. Copy paste the element name "radio1" text in the JavaScript below
  3. to open Developer Toolbar
  4. Click the Script tab
  5.  Copy paste script to console on the right and click “Run Script” to set the selected radio button to false