主题:菜鸟提问
<%@ page contentType="text/html;charset=gb2312" %>
<html>
<head>
<title>test</title>
<script language="javascript">
function test()
{
document.myform.test.name="successful";
}
</script>
</head>
<body>
<form name="myform">
<input type="text" name="test" value="" onblur="javascript:test()">
</form>
</body>
</html>
代码如上:我想实现,输入框中失去焦点时,将其内容设置为successful.
无法实现,望达人帮忙
<html>
<head>
<title>test</title>
<script language="javascript">
function test()
{
document.myform.test.name="successful";
}
</script>
</head>
<body>
<form name="myform">
<input type="text" name="test" value="" onblur="javascript:test()">
</form>
</body>
</html>
代码如上:我想实现,输入框中失去焦点时,将其内容设置为successful.
无法实现,望达人帮忙