jquery cant read textfield value
<p>I got a problem today with some codes regarding reading textfield value.
the value is returned back to the page as the result of a query from a php file:
//the first text filed with event calling a php file to query the name's order in the list.</p>

<pre><code>&lt;label for=name&gt;Name&lt;/label&gt;
&lt;input id=name name=name type=text placeholder="Individual / Company Director" required onblur="getOrderInList();" &gt;
</code></pre>

<p>the function getOrderInList() does a query and sends the result back to the caller page using javascript</p>

<pre><code>parent.document.getElementById('customerorder')=document.getElementById('query_result');
</code></pre>

<p>the query result which is an integer, is supposed to be back to the main page where the name text field is in a specific hidden text box <code>customercode</code></p>

<p>using jQuery i need to show it on the page using an alert for example. but seems to be <code>undefined</code>.</p>

<p>can anyone help me with this.</p>
