Find an element in a div using the attribute ends selector
<p>I am trying to find  hidden element in a div using the attribute ends with selector and I am running into issues. </p>

<p>I have a jQuery object which represents div and I know that my hidden input is in this div and it ends with "-id", but I am not able to locate it. </p>

<p>This is my code</p>

<pre><code>var clickedContainer = $(theThis).parent().parent().parent();
var id = clickedContainer.find([id$='-id']).val();
</code></pre>

<p>I get an error on the second line. </p>

<p>I guess, I don't know how to find an element in a div which is represented by a jQuery object.</p>
