Using $('#foo').val() == $('#foo').is(':checked') never ends in true?

how would I go about equating those two variables?Here is the my code:\[code\]if ($('#<%= CheckBox1.ClientID %>').val() != $('#<%= CheckBox1.ClientID %>').is(':checked')) { ... }\[/code\]which always fires..How can I compare these two values? I'm trying to capture the checkboxes last state and see if it is the same as the current one.Thanks!
 
Back
Top