Select the surrounding tag in jquery
<p>I have $(this) pointing at my input box but cannot seem to reference the surrounding span to add a red border.</p>

<pre><code>&lt;span id="hdr-su_name" class="eforminput"&gt;
    &lt;input type="text" size="30" id="su_name" name="su_name"&gt;
&lt;/span&gt;
</code></pre>

<p>I have tried this but does not work:</p>

<pre><code>$(this).parent().css({'border-color':'1px solid #ff0000'}); 
</code></pre>

<p>Any help much appreciated !</p>
