87,972
社区成员
发帖
与我相关
我的任务
分享
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
</head>
<body>
<input type="button" value="选择" onClick="myFunction('panelset','product_first','100')" >
<input type="button" value="选择" onClick="myFunction('panelset','product_first','200')" >
<input type="text" name="panelset" id="panelset" value="" />
<script>
function myFunction(targetId,unknown,value){
document.getElementById(targetId).value=value;
}
</script>
</body>
</html>