2

After I pasted some long codes to the Stack Snippet editor, I couldn't scroll down to the last, "wrapped" line, it's almost invisible:

Try it in a 800x600 screen, paste this code to the HTML box:

    <input type="checkbox" id="checkbox1" />
    <label for="checkbox1">Tick the check box</label>

    $(function()
    {
        $("#checkbox1").change(function()
        {
            localStorage.check = this.checked;
        });
        var isChecked = localStorage.check ? localStorage.check == "true" : false;
        $("#checkbox1").prop("checked", isChecked);
    });
1
  • On which question/answer, link to that? Commented Aug 23, 2015 at 17:28

0

You must log in to answer this question.

Browse other questions tagged .