Retrieve Field properties in JQuery
<p>I am new to JQuery.</p>

<p>I have created many textfields,textarea fields in a DIV. Inside that div I kept separate divs for every field(which includes a label tag, and the field(text/textarea)) in an orderly manner.</p>

<p>And now I am trying to retrieve the label names and the type,size of those fields ,when clicking on save. How can I do so in JQuery?</p>

<p>Also I may not know what fields are there after that label. It may be anything text,textarea etc..Is it possible to find what tag is following label tag??</p>

<p>Here is the html:</p>

<pre><code>    &lt;div id="fb_contentarea_col1down21"&gt;

    &lt;div id="1"&gt;
               &lt;label id="label1"&gt;name&lt;/label&gt;
              &lt;input type="text" style="width: 200px;" id="input1"/&gt;&lt;br/&gt;
               &lt;div id="instr1"/&gt;
           &lt;/div&gt;
            &lt;div id="2"&gt;
              &lt;label id="label2"&gt;address&lt;/label&gt;
              &lt;textarea id="input2" style="width: 200px;"/&gt;&lt;br/&gt;
              &lt;div id="instr2"/&gt;
          &lt;/div&gt;

        &lt;/div&gt;&lt;!-- End of fb_contentarea_col1down21 --&gt;

&lt;div id="save"&gt;&lt;input type="submit" value="Save Form" class="button" id="saveForm"/&gt;
</code></pre>
