Hi, I've assigned a module for development using JSP,Servlet.I dont know how to proceed for the below:
A dropdwn list with LABEL MyHobbies and options: A,B,C.
Now the code should be as For MyHobbies there should be a name assigned which can be used as a reference to MyHobbies label. I should refer to that refernce in my program to check which one of 3 (A,B,C)values is selected.
The label element has nothing to do with finding out which value was selected in a select control. On the page, the value attribute of the control will yield the current selection; after submission, the value of the control will be submitted using the name attribute assigned to the control.