Can this 2-liner jquery be shortened to 1 line?
<p>I have these divs, each have the same class <code>.onediv</code> and distinct ids <code>div1, div2, div3</code></p>

<pre><code>&lt;div class="alldivs"&gt;
   &lt;div class="onediv" id="div1"&gt;
   &lt;/div&gt;
   &lt;div class="onediv" id="div2"&gt;
   &lt;/div&gt;
   &lt;div class="onediv" id="div3"&gt;
   &lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>I want to use jquery to change their css <code>display</code> property so that all of them are <code>display none</code> except <code>id=div2</code> which is <code>display block</code>. Right now I'm doing it this way with 2 lines. Is there a quicker way to do the same thing with one line only?</p>

<pre><code>$('.onediv').css('display', 'none');    
$('#div2').css('display', 'block');
</code></pre>
