Hi,
I am new to JQuery.
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.
And now i am trying to retrive the label names and the type,size of those fields ,when cliking on save .How can i do so in JQuery
Also i may not know what fields are there after that label may be anything text,textarea etc..Is it possible to find what tag is following label tag??
Here is the html
<div id="fb_contentarea_col1down21">
<div id="1">
<label id="label1">name</label>
<input type="text" style="width: 200px;" id="input1"/><br/>
<div id="instr1"/>
</div>
<div id="2">
<label id="label2">address</label>
<textarea id="input2" style="width: 200px;"/><br/>
<div id="instr2"/>
</div>
</div><!-- End of fb_contentarea_col1down21 -->
<div id="save"><input type="submit" value="Save Form" class="button" id="saveForm"/>
Please suggest me....