We will learn how to check a checkbox and how to uncheck a checkbox using the jQuery prop() function with example and live demo. $('input:checkbox[name=checkme]').is(':checked'); 2. If the checkbox is checked then it will return true.. Attributes vs Properties¶. The :checkbox selector selects input elements with type checkbox.. Syntax: $('#textboxID').val($("#checkboxID").is(':checked')); In the above syntax, basically the return value of the checked or unchecked checkbox is being assigned to the textbox. In this post, we will see how to retrieve values of checked checkboxes with JavaScript and jQuery. With jQuery you can do: $('#myCheckbox').attr('checked', true); // Checks it $('#myCheckbox').attr('checked', false); // Unchecks it Cause you know, in HTML, it would look something like: