Navigator 2.0, Internet Explorer 3.0
radio.defaultChecked
defaultChecked is a read-only Boolean property of the Radio object. It is true if the Radio button is initially selected--i.e., if the CHECKED attribute appears in the Radio's HTML <INPUT> tag. If this tag does not appear, then the Radio button is initially deselected, and defaultChecked is false.
You can use the defaultChecked property to reset a group of radio buttons back to its default state. You might do this when the user selects a Reset button in a form, for example. You can reset a group of radio buttons with the following function:
function resetRadio(radio_group) { var i; for(i =index.html 0; i < radio_group.length; i++) { if (radio_group[i].defaultChecked) { radio_group[i].checked = true; break; } } }
file: /Techref/language/JAVA/script/definitive/refp_317.htm, 4KB, , updated: 2019/10/14 15:00, local time: 2024/12/4 18:03,
18.119.107.159:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://sxlist.com/Techref/language/JAVA/script/definitive/refp_317.htm"> [Chapter 21] Reference: Radio.defaultChecked</A> |
Did you find what you needed? |
Welcome to sxlist.com!sales, advertizing, & kind contributors just like you! Please don't rip/copy (here's why Copies of the site on CD are available at minimal cost. |
Welcome to sxlist.com! |
.