It's being blocked by preventDefault() Take a look at this: jsfiddle.net/q8bAE/5 You can see that the 2nd checkbox functions normally, while the first remains in its initial state when clicked.
It's being blocked by preventDefault(). Take a look at this: jsfiddle.net/q8bAE/5/ You can see that the 2nd checkbox functions normally, while the first remains in its initial state when clicked. It appears that preventDefault() causes checkbox change actions to be stopped... which I didn't know until right now!
The docs for toggle() say "the implementation also calls .preventDefault() on the event.
1 to you, sir. I was unaware that toggle() called preventDefault! – Adam Terlson Apr 18 at 15:53 +1 better than my answer!
– Dve Apr 18 at 15:53 You're correct. Thanks for pointing that out! – waffl Apr 19 at 11:56.
Im not totally sure why you get the error when doing it that way, but changing the code to use 'change' fixes it.. jsfiddle.net/Jmnwr/13.
Works great, thank you! – waffl Apr 19 at 11:57.
.toggle() is intended to show/hide the element in question. Here's my solution: jsfiddle.net/pBKbz.
Here's yet another solution, dynamically grabbing the category from the checkbox value. jsfiddle.net/csaltyj/Jmnwr/17.
Thanks! Definitely useful to grab the category dynamically. – waffl Apr 19 at 11:58.
I never liked using removeAttr with checked... try leaving that out (DEMO). It's even less code.
Thank you, works perfectly as well. – waffl Apr 19 at 11:57.
It's being blocked by preventDefault() . Take a look at this: jsfiddle.net/q8bAE/5 You can see that the 2nd checkbox functions normally, while the first remains in its initial state when clicked.
Im not totally sure why you get the error when doing it that way, but changing the code to use 'change' fixes it..
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.