〒番号自動入力項目を2カ所設置すると動作しません

津田さん (2013-08-18 12:35:34) nihonkempo.net/test/mail.html

1段目のタグ↓↓↓↓↓↓↓

<th bgcolor="#ffffff" width="235">郵便番号</font>
<p>postcode</p></th>
<td width="375"><input type="text" name="郵便番号" size="20" /> <input type="button" value="〒から住所を自動入力" onclick="mfpc(’mailform’,’郵便番号’,’住所’);" /></font></td>
</tr><tr>
<th width="235"><font size="+1">住所<span>*</span></font>
<p>address</p></th><td width="375"><input type="text" name="住所" size="70" /></td>
</tr>

2段目のタグ↓↓↓↓↓↓↓

<th bgcolor="#ffffff" width="235">郵便番号</font>
<p>postcode</p></th>
<td width="375"><input type="text" name="届先郵便番号" size="20" /> <input type="button" value="〒から住所を自動入力" onclick="mfpc(’mailform’,’届先郵便番号’,’届先住所’);" /></font></td>
</tr><tr>
<th width="235"><font size="+1">住所<span>*</span></font>
<p>address</p></th><td width="375"><input type="text" name="届先住所" size="70" /></td>
</tr>

こうしたら良いって事なんですね(*^_^*) 参考になりました

ありがとうございます。