print.println("<!DOCTYPE html>"
+"<html>"
+"<body>"
+"<form action =\"" + req.getRequestURI() + "\" method=\"post\">"
+"<input type = \"text\" name=\"col1\" value= \"" + t.getCol1() + "\" readonly>" + "<br>"
+"<input type = \"text\" name=\"col2\" value= \"" + t.getCol2() + "\" readonly>" + "<br>"
+"<input type = \"text\" name=\"col3\" value= \"" + t.getCol3() + "\" >" + "<br>"
+"<input type = \"text\" name=\"col4\" value= \"" + t.getCol4() + "\" >" + "<br>"
+"<input type = \"text\" name=\"col5\" value= \"" + t.getCol5() + "\" >" + "<br>"
+"<input type = \"submit\" name = \"editar\" value=\"Alterar\">"+"<br>"
+"</form>"
+"</body>"
+"</html>"
);
Quero fazer uma funcao javaScript para os campos 3 , 4 , 5 aceitarem apenas numeros.O que eu faco?