Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>ToDo</title>
    <style>
    ol {
        font-size: 1.6em;
        padding: .6em;
        list-style: none;
    }
    li:before {
        content: "★";
        margin-right: .8em;
    }
    .checked:before {
        content: "✔";
    }
    </style>
</head>
<body>
    <ol>
        <li>Today's First Task…</li>
        <li class="checked">Today's Second Task…</li>
        <li>Today's third task…</li>
        <li>Etc.</li>
    </ol>
</body>
</html>
 
// jQuery like CSS selectors
function $(s) {
    return document.querySelectorAll(s);
}
// Nitty Gritty
$('li').forEach(function(){
    this.ondblclick = function() {
        this.classList.toggle('checked');
    };
});
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers