我在html中收集這個表單以收集macaddress,並且我想輸出(CompleteMacAddress)文本值中的所有輸入數據,如(10-20-30-40-50-60 )在一個隱藏文本輸入中收集多個輸入
任何幫助的JavaScript或jQuery的?
<form name="form1" action="" method="get">
<input name="MacAddressPart1" type="text" id="MacAddressPart1" size="2" maxlength="2" >
<input name="MacAddressPart2" type="text" id="MacAddressPart2" size="2" maxlength="2">
<input name="MacAddressPart3" type="text" id="MacAddressPart3" size="2" maxlength="2">
<input name="MacAddressPart4" type="text" id="MacAddressPart4" size="2" maxlength="2">
<input name="MacAddressPart5" type="text" id="MacAddressPart5" size="2" maxlength="2">
<input name="MacAddressPart6" type="text" id="MacAddressPart6" size="2" maxlength="2">
<input type="hidden" name="CompleteMacAddress" value="">
'Java'!='JavaScript'。如果您不確定要選擇哪一個,請閱讀您正在使用的標籤的說明。 – Pshemo