What is the easiest way to read the value of a checkbox?

Giganews Newsgroups
Subject: What is the easiest way to read the value of a checkbox?
Posted by:  Randell_D (fiprojects.c…@gmail.com)
Date: Mon, 24 Mar 2008

I know I can read the value of an input text box via
document.form['myformname'].elements['myfieldname'].value (and a
number of other ways) but when I try to read checkbox value using the
above method it doesn't work for me.

My question to your fineselves is: What is the easiest way for me to
read the value of a checkbox?

It sounds simple but I've not written js in about six or more months
so I'm blank on ideas...

Thanks!

Replies