Sorry for the mess I produced. Of course all this stuff with _checked
array is not necessery if you want send AjaxRequest immediatly after
checkbox click - just extract the clicked item and send all needed data
including checkbox state as you do.
-wz
Hi
I wrote a routine (not sure if it
Try it passing cb1 into a function as cbValue and then $(cbValue).checked...
On Apr 27, 2012 1:46 AM, Wojtek Zadora woj...@studioatrium.pl wrote:
Well, I tested it and in my case having input type=checkbox name=1
value=1 id=cb1
console.log($('cb1').checked); - returns false
$(cbValue).checked returns boolean (true|false) and you compare it to
string:
if( cbState == checked )
simply
strState = (cbState == true) ? checked : unchecked;
-wz
Try it passing cb1 into a function as cbValue and then
$(cbValue).checked...
On Apr 27, 2012 1:46 AM, Wojtek Zadora
Dang it... I knew it had to be something stpid!!! LOL
Thanks! Its 4a here, I'm gonna get some sleep.
On Apr 27, 2012 4:10 AM, Wojtek Zadora woj...@studioatrium.pl wrote:
$(cbValue).checked returns boolean (true|false) and you compare it to
string:
if( cbState == checked )
simply
Well, that didn't work...
input type='checkbox' id='1' name='approved' onclick=saveChange(1);
checked='checked'/
select id='ajMode_1' name='mode' onchange=saveChange(1);
option value='read_write' selected='selected'Send and Receive/option
option value='read_only'Receive Only/option
/select
On 27 April 2012 09:12, Phil Petree phil.pet...@gmail.com wrote:
Its 4a here, I'm gonna get some sleep.
On 27 April 2012 10:04, Phil Petree phil.pet...@gmail.com wrote:
Well, that didn't work...
not enough sleep!
input type='checkbox' id='1'
not a legal ID - must start with a letter
Dave, you're a gentleman and a scholar...
The id was irrelevant because in the original pass I was passing in
this.checked but then someone suggested we allow them to change the mode as
well so then I couldn't use this.checked with an onchange fired via a
select and by then it was wy to late