Try to use .is() function along with :checked selector to accomplish your task,
.is()
:checked
ckb = $("#ickb").is(':checked');
2.1m questions
2.1m answers
60 comments
57.0k users