您好我有一个选择表单,它也会在表单之间进行更改,这意味着它可以在产品(也是特定产品)和之后的数据之间进行选择。
<select class="select" name="product" style="width: 270px" onchange="location = this.options[this.selectedIndex].value;">
<option name="Product 1" selected value="orderform1.html">Product 1</option>
<option name="Product 2" value="orderform2.html">Product 2</option>
</select>
在产品之间切换工作正常,但是发布了数据中的数据,所以我试图切换名称和值
location = this.options[this.selectedIndex].name;
但那不起作用,任何想法暗示着什么,thx任何帮助:)