I use the following code:
var newValue = ($(event.target).is(":checked")) ? 1 : 0;
var oldValue = (!$(event.target).is(":checked")) ? 1 : 0;
sendMessage(this.name, oldValue, newValue);
Is there any better approach?
|
I use the following code:
Is there any better approach? |
|||
|
|
|
Not your sending Also |
|||||
|
|
As Cygal noted in one of the comments, using the |
|||||
|
|
For the record:
|
|||
|
|
|
Ah I forgot that rep doesn't transfer over, apparently I don't have enough to comment. I was going to reply to Cygal's comment on Raynos's answer: While it is true that |
|||
|
|