jQuery: Get related or nearly elements?
<p><strong>My codes in HTML:</strong></p>

<pre><code>&lt;p&gt;&lt;input type="text" class="txt" id="u" /&gt;&lt;label for="u"&gt;user&lt;/label&gt;&lt;/p&gt;
&lt;p&gt;&lt;input type="text" class="txt" id="p" /&gt;&lt;label for="p"&gt;pass&lt;/label&gt;&lt;/p&gt;
</code></pre>

<p><strong>Javascript:</strong></p>

<pre><code>$(document).ready(function() {
    if( $('.txt').val() ) {
        //change st in related label tag
    }
});
</code></pre>

<p>How to do that? Please help me solve this issue. Thank you very much !</p>
