日期:2014-05-16 浏览次数:20460 次
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
</head>
<body>
<input class="Input" name="Input1" />
<input name="Input1_Result" />
<input class="Input" name="Input2" />
<input name="Input2_Result" />
<script type="text/javascript">
$(".Input").bind('blur',function(e){
var currentName = this.name;
var nextInput = $("input[name='" + currentName + "_Result']");
nextInput.val(this.value);
});
</script>
</body>
</html>