my question is how to get the contents of a textbox in my javahttpserver webinterface
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Message - Send</title>
</head>
<body>
<input id="message" type="text"/>
<button id="message_send" type="button">Send</button>
</body>
</html>
Do I need to do it via javascript or java?
Call this function with jquery in it when the button is pushed. (I put an alert function in it so you can test it) Make sure you include the jquery.js
function getstuff(){
var box = $("#textboxtarget").val();
alert(box);
}