jQuery I can get val but id is undefined?
<p>I am missing something I think... I need the value and id of a datepicker input that is in each row of a table. This code loops and searches but is not working as I expected. The table contains rows like this</p>

<pre><code>&lt;tr&gt;
 &lt;td&gt;&lt;input type="text" id="pd_abc_123" class="datePicker"&gt;&lt;/td&gt;
 &lt;td&gt;&lt;input type ="checkbox" id="blahblah"&gt;&lt;/td&gt;
&lt;/tr&gt;

$(table).find("tbody&gt;tr").not(':first').each(function () {
                    var datePicker = $(this).find("input[type=text]");
                    var dt = $(datePicker).val();
                    alert(dt);
                    alert($(datepicker).id);
                    alert($(datepicker).attr("id"));
                });
</code></pre>

<p>Also I tried to find the input via class but it also comes back undefined</p>

<pre><code>var temp = $(this).find(".datePicker");
</code></pre>
