Hello, I want to know if it is possible to do that, and how if yes.
I tried doing something like this

...
<%! 
public static Object selectobject;
%>
<select name"xxx" onChange="<% selectobject = this%>"> </select>
...

But it's not giving me any useful information about the values selected in the drop-down menu.
If it's possible, i prefer without javascript, but just JSP.

...
<script type="text/javascript">
     function doTest(obj){
           alert(obj.value);
     }
</script>
<body>
   <form name="form1" method="post" action="page1.jsp">
      <select name="country" onchange="doTest(this)">
           ....
     </select>
  </form>
</body>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.