jQuery - Get child input based on name selector
<p>I've got an onclick event which is calling a function, passing the current div:</p>

<pre><code>&lt;div onclick="deleteline($(this));"&gt;
</code></pre>

<p>In my deleteline function, how do I get a child of the parent of $(this) where the name contains Qty?</p>

<p>In this example I'm looking to get the ProdQty input box:</p>

<pre><code>&lt;div&gt;
    &lt;input id="PrdQty" type="hidden" value="1"&gt;
    &lt;div onclick="deleteline($(this));"&gt;
&lt;/div&gt;
</code></pre>

<p>EDIT:
This page is getting included multiple times within another page via an ajax call.
Therefore if I assign the clickable div an ID, it's going to cause a conflict after this code is injected into the parent for the 2nd time.</p>

<p>As a result, I've used the suggestions below, kept the inline onclick and I'm getting the qty using: sender.parent().find('input[id*="Qty"]')</p>
