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:none " 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="divdirectionTextBox" >
<input type="text" name="directionTextBox" size="45" value="" onkeypress="subEnterKeyPressHandler(event)" class="input marginright10" id="directionTextBox">
</div>
<div class="formline topalign" id="divisionDropdown1" style="display: none;">
<select name="divisionDropDown1" onchange="showFieldsDivisionDD(searchFormObject.di visionDropDown1);" class="select" id="divisionDropDown1Style"> <option value="1">1</option>
<option value="2">2</option>
</select>
</div>
<div class="formline topalign" id="divisionDropdown2" style="display: none;">
<select name="divisionDropDown2" class="select" id="divisionDropDown2Style">
<option value="a">a</option>
<option value="b">b</option>
</select>
</div>
here, initially only the div with the id "divdirectionTextBox" is visible, but when i try to submit the form the fields with the ids "divisionDropdown1" and "divisionDropdown2" gets visible while the field "divdirectionTextBox" hides.
If anyone has encountered such a problem then please share the solution with me.
Thanks