Created
August 6, 2019 12:39
-
-
Save skyhisi/10db41f73017ba82af66b06e9387b513 to your computer and use it in GitHub Desktop.
Create button to untick all check boxes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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