Jquery get input value inside list which is inside a div
<p>I have something like the following</p>

<pre><code>&lt;div id="container"&gt;
      &lt;ul id="name_list"&gt;
          &lt;li class="name"&gt;
             &lt;input type="hidden" class="name_val" value="5" /&gt;
          &lt;/li&gt;
      &lt;/ul&gt;
&lt;/div&gt;
</code></pre>

<p>I am trying to get the value of the input. So far I have the following Jquery statment.</p>

<pre><code>$("#container li.name input.name_val").val();
</code></pre>

<p>this does not work anyone know a better way?</p>
