0

我有一个 html 表单

    <form method="get" action="http://domainn.com/">
    <div class="item">
        <span>order_by</span>
        <select class="input" name="order_by">
            <option value="">DF</option>
            <option value="id">id</option>
            <option value="year">year</option>
        </select>
    </div><div class="item">
        <span>category</span>
        <select class="input" name="category">
            <option value="">DF</option>
            <option value="1">1</option>
            <option value="2">2</option>
        </select>
    </div>
    <div>
        <input type="submit" class="btn" value="Search">
    </div>
</form>

当点击它会移动到buttu find links domain/?order_by=&category =

我只想选择值出现在链接上

比如只选择不会切换的类别 select order_by domain/?category=1 not link domain/?order_by=&category=1

4

0 回答 0