Question: I would like to set the focus to one of my `contentEditable` div element. but not working.

here is my code: 

```js
$(document).click(function () {
    $('div').focus();
});
```

```css
div{
    border:1px solid red;   
}
```

```html
<div contentEditable >&nbsp;</div>
```

Answer: 
Here is a working snippet without using jQuery (which you do not load in your snippet). I also added an ID to get the correct `div`.

```js
document.getElementById('edit-me').focus();
```

```css
div { border:1px solid red; }
```

```html
<div id="edit-me" contentEditable>&nbsp;</div>
```
You should wait until the entire document is loaded before executing jQuery.

```js
$(document).ready(function () {
    $('div').click(function () {
        $('div').focus();
    })
});
```

```css
div{
    border:1px solid red;   
}
```

```html
<div contentEditable >&nbsp;</div>
```