0

嗨,我有一个选择表格,它也在表格之间变化,这意味着它是在产品(也是特定产品)和之后发布数据之间进行选择。

            <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;

但这不起作用,任何想法都暗示了任何事情,谢谢您的帮助:)

4

0 回答 0