jquery can't find selected value
<p>jQuery is behaving very strangely in a script. Basically, after updating the DOM using jquery I am trying to get the value of a file input that has been inserted into the DOM using the ID. But if I try to access the file element directly I get an empty string. However if I try to access the file by starting at the parent div I get the correct value. Unfortunately I need to access it directly:</p>

<pre><code>alert($("#input_id").val()); //returns empty string
alert($("#div_id &gt; #input_id").val()); //returns correct value.
</code></pre>
