選択したボックス値のURLに移動するための以下のjavascript関数があります。
function go(x) {
alert(x);
location = x.value;
}
getElementByIdを使用できませんユーザーが異なるため、複数の選択ボックスが存在する可能性がありますフォームとdiv内にすべての選択ボックスを出力するphpを作成しました
<div class="styled-select">
<form name="menu">
<select id=Admission onchange=go(this)>
<option value=/admission>Add Existing Students</option>
</select>
<select id=Student onchange=go(this)>
<option value=www.bing.com>Student Details</option>
</select>
</form>
</div>
すべての提案を歓迎します。