<form name="form1" method="post" action="zhixun4_JD2.asp"> <input type="checkbox" name="box" onclick=show("1")>西 <input type="text" name="mess1" value="全国煤矿基地,每小时"> <br> <input type="checkbox" name="box" onclick=show("2")>海南 <input type="text" name="mess2" value="美丽的海南省是我国。。。"> <br> 。。。还有很多个复选框与句子。 <br> <textarea name="T_travel" cols="60" id="T_travel"></textarea> </form><script language="javascript">function show(nm){str="mess"+nm;form1.T_travel.value=form1.T_travel.value+document.form1.elements[str].value; }</script>

评论