知道如何将网址附加到VALUEHERE所在的地方吗?我不确定如何或是否可能:
<form method="get" action="<?php echo site_url(); ?>/discover/?search_query=&orderby=blank&tax_category=VALUEHERE&wpas=1">
<fieldset>
<select name="">
<option value="">all categories</option>
<option value="college-students">college-students</option>
</select>
<button type="submit">Search</button>
</fieldset>
</form>
答案 0 :(得分:0)
使用jQuery:
var url = $("form").attr("action"); // get the URL;
url = url.replace("VALUEHERE", $("form select").val());
alert(url); // your final url