3 ms·
I'm seeing the content flash when checking/unchecking an item. Can I suggest toggling a class instead of wrapping/unwrapping the <del> tag? <style> .done
by holic 13y ago
I'm seeing the content flash when checking/unchecking an item. Can I suggest toggling a class instead of wrapping/unwrapping the <del> tag?
<style>
.done {
text-decoration: line-through;
}
</style>
<script>
$(document).on('click', '[type="checkbox"]', function () {
var $this = $(this);
$this.parent().toggleClass('done', $this.is(':checked'));
});
</script>