how to make a checkbox checked and unchecked with jquery

This article is about making checkbox checked and unchecked using jquery

Html Code:
 
<input class="clone" type="checkbox" value="1" name="clone" id="clone">
Jquery Code:
 
Making checkbox checked
$('.clone').prop('checked', true);

 

Making checkbox unchecked

$('.clone').prop('checked', false);