1. If the form element is refreshed with js assignment, the record is the value after js assignment rather than the initial value
<html>
<head>
<script type="text/javascript">
function bb(){
var aa=document.getElementById_x("aa");
="3";
}
</script>
</head>
<body>
<form method="post">
<input type="text" value="" onclick="bb();"/>
</form>
</body>
</html>
<html>
<head>
<script type="text/javascript">
function bb(){
var aa=document.getElementById_x("aa");
="3";
}
</script>
</head>
<body>
<form method="post">
<input type="text" value="" onclick="bb();"/>
</form>
</body>
</html>