I have a form which has multiple DIVs in it. The DIVs can either be 'none' or 'inline' using the style property. I want to be able to find out what elements of the forms are in the DIV that is visible.
ie
<form>
<div id=one style.display='none'><input type=text name=txt1>
<input type=text name=txt2></div>
<div id=two><input type=text name=txt6>
<input type=text name=txt4></div>
<form>
so I would want txt1 and txt2 returned
ie
<form>
<div id=one style.display='none'><input type=text name=txt1>
<input type=text name=txt2></div>
<div id=two><input type=text name=txt6>
<input type=text name=txt4></div>
<form>
so I would want txt1 and txt2 returned