Try to use .is() function along with :checked selector to accomplish your task,
.is()
:checked
ckb = $("#ickb").is(':checked');
548k questions
547k answers
4 comments
86.3k users