7
Answers

check box value

Sarath Kumar

Sarath Kumar

10y
802
1
in my application need to select  one from bus type.i.e,AC or NonAC


here i am writing the code like this but unable to get selected checkbox value.if anyone knows how to get selected checkbox value.


  $(function () {
                $('#chkType').click(function () {
                    var checked = $("#chkType").is(':checked');
                    alert(checked); return false; 
    });
});
Answers (7)