Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #22580

Re: Default values of checkboxes in forms

From Tim Streater <timstreater@greenbee.net>
Newsgroups comp.lang.javascript
Subject Re: Default values of checkboxes in forms
Date 2014-01-12 09:25 +0000
Message-ID <120120140925002064%timstreater@greenbee.net> (permalink)
References <2fae46c4-b07c-48e6-a6b4-d7cdc597225a@googlegroups.com>

Show all headers | View raw


In article <2fae46c4-b07c-48e6-a6b4-d7cdc597225a@googlegroups.com>,
<jonas.thornvall@gmail.com> wrote:

> I know this is not strictly JavaScript, but i've tried to figure out if there
> is boolean default values for checked unchecked sent from a form checkbox to
> JavaScript when value not set.
> 
> If so what are the default values passed?
> 
> In code i use this statement to Catch value.
> 
> primen = parent.menu.document.check.p.value;
> 
> And in HTML
> <FORM NAME=check onSubmit="parent.ulam.checked(); return false;"> 
> P<input type="checkbox" name="p" checked="yes
> </FORM> 
> 
> So does primen get a value by default when "p" checked and unchecked? 

Why don't you test it and see what you get.

-- 
Tim

"That excessive bail ought not to be required, nor excessive fines imposed,
nor cruel and unusual punishments inflicted"  --  Bill of Rights 1689

Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Default values of checkboxes in forms jonas.thornvall@gmail.com - 2014-01-11 23:05 -0800
  Re: Default values of checkboxes in forms jonas.thornvall@gmail.com - 2014-01-11 23:24 -0800
    Re: Default values of checkboxes in forms jonas.thornvall@gmail.com - 2014-01-11 23:43 -0800
      Re: Default values of checkboxes in forms jonas.thornvall@gmail.com - 2014-01-11 23:58 -0800
        Re: Default values of checkboxes in forms "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-01-12 09:40 +0100
          Re: Default values of checkboxes in forms jonas.thornvall@gmail.com - 2014-01-12 01:58 -0800
            Re: Default values of checkboxes in forms "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-01-12 17:50 +0100
              Re: Default values of checkboxes in forms jonas.thornvall@gmail.com - 2014-01-12 22:52 -0800
                Re: Default values of checkboxes in forms "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-01-13 11:40 +0100
                Re: Default values of checkboxes in forms Denis McMahon <denismfmcmahon@gmail.com> - 2014-01-13 13:02 +0000
                Re: Default values of checkboxes in forms "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-01-13 15:00 +0100
              Re: Default values of checkboxes in forms jonas.thornvall@gmail.com - 2014-01-13 01:28 -0800
                Re: Default values of checkboxes in forms "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-01-13 11:10 +0100
  Re: Default values of checkboxes in forms "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2014-01-12 10:37 +0200
  Re: Default values of checkboxes in forms Tim Streater <timstreater@greenbee.net> - 2014-01-12 09:25 +0000

csiph-web