電話番号を作りたいです。フォームに入力します。ユーザーは、ドロップダウン ボックスから市外局番を選択する必要があります。ドロップダウン ボックスのすぐ右には、電話番号を入力するためのテキスト ボックスがあります。ドロップダウンボックスとテキストボックスを単一のタグに使用したい。これを試すと、2番目のフィールド、つまりテキストボックスを2行目に自動的に送信します
自動的にタグ付けします。2 つのテキスト ボックスまたは 2 つのドロップダウン ボックスを使用すると、単一のタグで正常に機能します。
1 つのドロップダウン ボックスと 1 つのテキスト ボックスを 1 つのタグに使用したいと考えています。
または、これを行うことができる他の方法はありますか。
私が使用しているコードを見つけてください。
<table>
<tbody>
<tr>
<td><label>Name:</label></td>
<td><input type="text" name="bftpro_name"/></td>
</tr>
<tr>
<td><label>Email:</label></td>
<td><input type="text" name="email"/></td>
</tr>
<tr>
<td><label>Phone No:</label></td>
<td><select id="countries" style="width: 50%; name="countries">
<option value="Afghanistan">Afghanistan</option>
<option value="Åland Islands">Åland Islands</option>
<option value="Albania">Albania</option>
<option value="Algeria">Algeria</option>
</select>
<input type="text" style="width: 50%; name="field_2" value=""/></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" value="Download"/></td>
</tr>
</tbody>
</table>
<input type="hidden" name="bftpro_subscribe" value="1"/>
<input type="hidden" name="list_id" value="2"/>
</form>