I have a
jsp displaying elements in a table. This jsp has embedded JavaScript. I want to pass value of variable from Javascript to JSP to display the updated value. Is it possible ? if this is not possible then how can i do it.
the way i am trying to do unsuccessfully :
myjsp:
<html>
<head>
// code for getting attributes
<script language="JavaScript">
function myfunction()
{
var myvar;
// code
document.chkout.textbox.value = myvar;
}
</script>
</head>
<body>
<form name="chkout">
<table>
// calling myfunction .....
<tr>
<td align="left"><b> Grand Total </b></td>
<td align="center"> <input type="text" name="textbox" value=??> </td>
</tr>
</table>
</form>
</body>
</html>
thanks a lot for your suggestions and help..