[Proto-Scripty] stupid checkbox question

2012-04-26 Thread Phil Petree
How do you get the checked state of a single checkbox? $('cbID').checked doesn't work... also tried $F('cbID').checked in the following function, the alert comes back with undefined cdValue is the id of the checkbox... function saveChange(cbValue) { var strState; var cbState; // get

Re: [Proto-Scripty] stupid checkbox question

2012-04-26 Thread Wojtek Zadora
Well, I tested it and in my case having input type=checkbox name=1 value=1 id=cb1 console.log($('cb1').checked); - returns false console.log($('cb1').readAttribute('checked')); - returns null While input type=checkbox name=2 value=2 id=cb2 checked=checked console.log($('cb2').checked); -