I need to get the text a user enters in a textarea, in a script from JSP. I tried this code but get null value:
<label for="userText"></label>
<textarea name="userText" id="userText">text edited by the user</textarea>
<button onclick="myFunction()">Ok</button>
function myFunction() {
<%System.out.print(request.getParameter("userText"));%>
}
I can i get it?