How to make document.querySelector accept div id as parameter? : <p>I have this function:</p>

<pre><code>document.querySelector(".myDivClass");
</code></pre>

<p>Which accepts a div css class as parameter. How to make it accept a div id as parameter instead?</p>
