jQuery - Can't select "label" element with "for" attribute
<p>I'm trying to select the text of the "label" element amongst a large document of similar elements differentiated by the value of the "for" attribute.</p>

<p>If trying to select it like so <code>$("label[for=cu1]").text()</code></p>

<p>This is not working, nor is selecting the root element.</p>

<p>Here is the example node that contains the label w/ text I'm trying to select.  Please keep in mind that there are many other similar nodes, with only the "for" attribute differing (and the id of the input element, if that helps) ...</p>

<pre><code>&lt;div class="verticalfield"&gt;
  &lt;label class="verticalfield" for="cu1"&gt;Custom 1&lt;/label&gt;
  &lt;input id="cu1" class="inputtext long" type="text" value="" maxlength="255" name="cu1"&gt;
&lt;/div&gt;
</code></pre>
