jQuery closest element with an attribute that contains a value
<p>I have some HTML code that looks like this:</p>

<pre><code>&lt;tr id="nbContent_GR1"&gt;...&lt;/tr&gt;
&lt;tr id="nbContent_GR2"&gt;...&lt;/tr&gt;
&lt;tr id="nbContent_GR3"&gt;...&lt;/tr&gt;
&lt;tr id="nbContent_GR4"&gt;...&lt;/tr&gt;
&lt;tr id="nbContent_GR5"&gt;...&lt;/tr&gt;
&lt;tr id="nbContent_GR6"&gt;...&lt;/tr&gt;
</code></pre>

<p>Within one of the rows, I want to traverse up the DOM to find the closest  element that has an ID attribute that starts with "nbContent_GR". So basically I want to be able to find the parent TR element without knowing its exact ID, just the first one that starts with "nbContent_GR". Is this possible? If so, how would I go about it?</p>

<p>BTW, I'm aware of the closest() and "contains" selectors, just not sure if contains can be used on attribute values or not.</p>
