Javascript/Jquery: How to set focus at id inside contenteditable
<p>I have following html:</p>

<pre><code>&lt;div id="content" contenteditable="true" style="font-family: Helvetica;"&gt;
    Some text
    &lt;div id="cursor" contenteditable="true"&gt;&lt;/div&gt;
    Some other text.
&lt;/div&gt;
</code></pre>

<p>Now I want to set cursor after Some text (exactly in <code>#cursor</code>). I tried both way:</p>

<pre><code>$('#cursor').focus();
document.getElementById('#cursor').focus();
</code></pre>

<p>but it didn't work. Is there any way to do this?</p>
