iterate in form fields using jquery
<p>suppose i have form and it has many form fields. how can i iterate with in all form fields and check the input type and collect the value</p>

<p>my form fields are</p>

<pre><code>&lt;form id="form1" runat="server"&gt;
&lt;div&gt;
    &lt;fieldset&gt;
        &lt;ol&gt;
            &lt;li&gt;
                &lt;label class="left"&gt;
                    First Name
                &lt;/label&gt;
                &lt;input type="text" id="FirstName" runat="server" /&gt;&lt;/li&gt;
            &lt;li&gt;
                &lt;label class="left"&gt;
                    Last Name
                &lt;/label&gt;
                &lt;input type="text" id="LastName" runat="server" /&gt;&lt;/li&gt;
            &lt;li&gt;
                &lt;label class="left"&gt;
                    Email
                &lt;/label&gt;
                &lt;input type="text" id="Email" runat="server" /&gt;&lt;/li&gt;
            &lt;li&gt;
                &lt;label class="left"&gt;
                    Phone
                &lt;/label&gt;
                &lt;input type="text" id="Phone" runat="server" /&gt;&lt;/li&gt;
            &lt;li&gt;
                &lt;label class="left"&gt;
                    Contact Method
                &lt;/label&gt;
                &lt;span class="checkBoxGroup"&gt;
                    &lt;input type="checkbox" id="ReqEmail" runat="server" /&gt;&lt;label&gt;Email&lt;/label&gt;
                    &lt;input type="checkbox" id="ReqMail" runat="server" /&gt;&lt;label&gt;Mail&lt;/label&gt;
                    &lt;input type="checkbox" id="ReqPhone" runat="server" /&gt;&lt;label&gt;Phone&lt;/label&gt;
                    &lt;input type="checkbox" id="ReqNoContact" runat="server" /&gt;&lt;label&gt;No Contact&lt;/label&gt;
                &lt;/span&gt;&lt;/li&gt;
            &lt;li&gt;
                &lt;label class="left"&gt;
                    New Letter Type
                &lt;/label&gt;
                &lt;span class="myGroupRandom" &gt;
                    &lt;input type="checkbox" id="Checkbox1" runat="server" /&gt;&lt;label&gt;Company News&lt;/label&gt;
                    &lt;input type="checkbox" id="Checkbox2" runat="server" /&gt;&lt;label&gt;Press Releases&lt;/label&gt;
                    &lt;input type="checkbox" id="Checkbox3" runat="server" /&gt;&lt;label&gt;Deals&lt;/label&gt;
                    &lt;input type="checkbox" id="Checkbox4" runat="server" /&gt;&lt;label&gt;Employement&lt;/label&gt;
                &lt;/span&gt;&lt;/li&gt;
            &lt;li&gt;
                &lt;input type="submit" id="Submit" value="Submit" /&gt;&lt;/li&gt;
        &lt;/ol&gt;
    &lt;/fieldset&gt;
&lt;/div&gt;
&lt;/form&gt;
</code></pre>

<p>please guide thanks</p>
