When I put this code in my console, I end up with a checked box in my web page:

```
$('body').append($('<input/>', {
    type: 'checkbox',
    value: "foo",
    checked: false
}));

```

When I remove the checked attr altogether, the box is not checked:

```
$('body').append($('<input/>', {
    type: 'checkbox',
    value: "foo",                                                                  
}));

```

...but I need a dynamic set of checkboxes to be generated, some checked and some not. What attr/value creates the correct "unchecked" state?

UPDATE: 

I am using the latest Chrome.
jQuery version 3.2.1
The code works as expected in this fiddle: <https://jsfiddle.net/mmvunhL0/>
But not on my website... I'm wondering if there is a global setting or something touching the checkbox behavior.