This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I've a dropdown and a text box.Based on the value of Dropdown(if we change the drop down) the second text box should be visible else it should not be visible.
I am first using <div id="showText" style="display:none"> and hence not displaying the second text box unless the drop down changes.
But when we submit the form and if we have Action Errors in the page(Validation issue),then when the page gets loaded,with errors populated on it,this time the Second Text Box is not visible even though the Dropdown remains the same.