Skip to content

Instantly share code, notes, and snippets.

@skyhisi
Created August 6, 2019 12:39
Show Gist options
  • Save skyhisi/10db41f73017ba82af66b06e9387b513 to your computer and use it in GitHub Desktop.
Save skyhisi/10db41f73017ba82af66b06e9387b513 to your computer and use it in GitHub Desktop.
Create button to untick all check boxes
<button id="uncheckAll">Uncheck All</button>
<script type="text/javascript">
$('#uncheckAll').click(function(){$('.inline-task-list li.checked').each(function(i,e){ev = jQuery.Event("click"); ev.target = ev. currentTarget = e; ev.offsetX = ev.offsetY = 10; $(e).trigger(ev);});});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment