jQuery checkbox, getting status of checkbox

jQuery checkbox, getting status of checkbox

Hi there,

I'm having some trouble with determining the status of a checkbox after it has been clicked with the jquery.checkbox plugin


Here's my test case


When you tick on the 'fancy' checkbox, the javascript attempts to get the status with

 alert(this.checked);

- but as you can see it gets it precisely wrong, presumably because it is getting the status of the checkbox before it has actually been changed.

Can anyone advise how to do this properly?

Thank you

Michael Smith