HighDots Forums  

Re: check if radio is checked

Javascript JavaScript language (comp.lang.javascript)


Discuss Re: check if radio is checked in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Anthony Levensalor
 
Posts: n/a

Default Re: check if radio is checked - 01-06-2008 , 06:26 PM






Thomas 'PointedEars' Lahn said:
Quote:
Anthony Levensalor wrote:
David Mark said:
Best to use:

document.forms['myform'].elements['owned_business'][0].checked

Or:

document.forms.myform.elements.owned_business[0].checked
Why?

The former adheres to the W3C DOM Level 2 HTML Specification while
maintaining backwards compatibility to "DOM Level 0":

http://www.w3.org/TR/DOM-Level-2-HTM...ml#ID-26809268
http://www.quirksmode.org/js/dom0.html
http://docs.sun.com/source/816-6408-10/document.htm
Thanks, that's what I was looking for. Much obliged.

~A!
--
anthony at my pet programmer dot com


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.