问题原因
你的原代码将页面所有标签设置全局唯一的name属性,示例如下:
<!-- 第一个下拉 -->
<select name="goods_type">
<option id="type1" value="1">电子设备</option>
<option id="type2" value="2">服饰鞋帽</option>
</select>
<!-- 第二个下拉 -->
<select name="delivery_area">
<option id="area1" value="bj">北京</option>
<option id="area2" value="sh">上海</option>
</select>
- 保证所有
内容的提问来源于stack exchange,提问作者Andres Pelaez