checkbox val not showing false
Posted
by user281180
on Stack Overflow
See other posts from Stack Overflow
or by user281180
Published on 2010-05-21T11:37:21Z
Indexed on
2010/05/21
11:40 UTC
Read the original article
Hit count: 177
asp.net-mvc
|jQuery
I have the follwoing code:
$("input:checkbox").live('click', function() {
alert($(this).val());
});
True is shown if the checkbox is checked. However, if the checkbox is checked and I uncheck it, the value shown is still true. How can I correct that? What is wrong with the code? Thanks
© Stack Overflow or respective owner