How to pass variable from jquery to servlet (control)?

0

Ineedtodisplaythenoteoftheselecteditem,Ineedthevalueofthisitemor"name" to be able to do the search in the bank and thus show the user the value of the selected item, help me in that, so I see I need the jquery help, I got the value as follows:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script><scripttype="text/javascript">
    $(document).ready(function(){ 
          $('#teste').click(function(){ 
            alert($('#Quesito :selected').text());
          });
    });
</script>
<input id="teste" type="submit" value="Teste para o quesito">

Now I should put the value in a variable to be able to play in the servlet, how would I play pro servlet?

    
asked by anonymous 08.04.2018 / 22:41

0 answers