JS点击checkbox将其value值在text中显示

来源:百度知道 编辑:UC知道 时间:2024/05/15 00:43:56
如题

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5" />
<title>Untitled Document</title>
</head>

<body>
<form id="form1" name="form1" method="post" action="">
<input name="position" type="checkbox" onclick="javascrip:text_value.value=this.value" value="左" />左
<input name="position" type="checkbox" onclick="javascrip:text_value.value=this.value&quo