jQuery selector to grab previous div when input in current div has focus
<p>I have the following html structure</p>

<pre><code>&lt;div id="container"&gt;
  &lt;div class="label"&gt;
    @Html.LabelFor(m =&gt; m.SomeProperty) 
  &lt;/div&gt;
  &lt;div class="input"&gt;
    @Html.EditorFor(m =&gt; m.SomeProperty) 
  &lt;/div&gt;
&lt;!--on and on--&gt;
&lt;/div&gt;
</code></pre>

<p>What I want to do is set a background-color on the label div, when the input in the corresponding div has focus.</p>

<p>In other words, when the user clicks on (or tabs to) the textbox for SomeProperty, I want to highlight the label for SomeProperty by adding a css class to the labels div.</p>

<p>I know I can set class="SomeProperty" on the label div and then have some jQuery to add some css like this:</p>

<pre><code>$('#container input').focus(function () {
  var thisId = $(this).attr('id');
  $('.' + thisId).addClass('highlight');
  //...
});
</code></pre>

<p>But I'm wondering if there is a better way.  I don't really want to assign classes to all the label div's as it seems sloppy and maybe hard to maintain down the road.</p>

<p>The way I see it, I want to write a script that can jump up one level, and then grab the previous sibling, probably some combination of parent() and prev(), but I've not been able to get it right. Any suggestions?  </p>
