Hi All,
I am facing a weired issue. I am having a search form with some of the fields on it and a button which submits these fields values.
Functionaly everything is working fine but sometimes when i try to submit my search form i can see the fields which are hidden using the style "display:no ne " visible for a moment just before my page is submitted. I am providing the html code behind those components as follows:
<div class="formline topalign" id="divdirectio nTextBox" >
<input type="text" name="direction TextBox" size="45" value="" onkeypress="sub EnterKeyPressHa ndler(event)" class="input marginright10" id="directionTe xtBox">
</div>
<div class="formline topalign" id="divisionDro pdown1" style="display: none;">
<select name="divisionD ropDown1" onchange="showF ieldsDivisionDD (searchFormObje ct.divisionDrop Down1);" class="select" id="divisionDro pDown1Style"> <option value="1">1</option>
<option value="2">2</option>
</select>
</div>
<div class="formline topalign" id="divisionDro pdown2" style="display: none;">
<select name="divisionD ropDown2" class="select" id="divisionDro pDown2Style">
<option value="a">a</option>
<option value="b">b</option>
</select>
</div>
here, initially only the div with the id "divdirectionTe xtBox" is visible, but when i try to submit the form the fields with the ids "divisionDropdo wn1" and "divisionDropdo wn2" gets visible while the field "divdirectionTe xtBox" hides.
If anyone has encountered such a problem then please share the solution with me.
Thanks
I am facing a weired issue. I am having a search form with some of the fields on it and a button which submits these fields values.
Functionaly everything is working fine but sometimes when i try to submit my search form i can see the fields which are hidden using the style "display:no ne " visible for a moment just before my page is submitted. I am providing the html code behind those components as follows:
<div class="formline topalign" id="divdirectio nTextBox" >
<input type="text" name="direction TextBox" size="45" value="" onkeypress="sub EnterKeyPressHa ndler(event)" class="input marginright10" id="directionTe xtBox">
</div>
<div class="formline topalign" id="divisionDro pdown1" style="display: none;">
<select name="divisionD ropDown1" onchange="showF ieldsDivisionDD (searchFormObje ct.divisionDrop Down1);" class="select" id="divisionDro pDown1Style"> <option value="1">1</option>
<option value="2">2</option>
</select>
</div>
<div class="formline topalign" id="divisionDro pdown2" style="display: none;">
<select name="divisionD ropDown2" class="select" id="divisionDro pDown2Style">
<option value="a">a</option>
<option value="b">b</option>
</select>
</div>
here, initially only the div with the id "divdirectionTe xtBox" is visible, but when i try to submit the form the fields with the ids "divisionDropdo wn1" and "divisionDropdo wn2" gets visible while the field "divdirectionTe xtBox" hides.
If anyone has encountered such a problem then please share the solution with me.
Thanks
Comment