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 have a <select> tag with 2 options. When 1st option is selected, 2 text fields namely FirstName and LastName have to be displayed. When 2nd option is selected, 1 text field asking for GroupName has to be displayed. Problem: when 2nd option is selected and user enters the groupname and clicks "submit", the option automatically changes to "1st option" and fields (Firstname and Lastname) are displayed. I want to retain the 2nd option (and its respective field) after clicking submit. How do I achieve it?
I have tried to put only necessary part of the code only. dont mind the tag formations.