我有這個簡單的代碼,可以在Google Chrome上正常工作,但無法在IE 8上運行。選擇該選項時,該值始終爲空。無法從SELECT中獲取值
<form target="_self" method="post" action="index.pl" name="set_filter">
<select name="project" onChange='window.location="index.pl?project=" + this.value'>
<option selected="selected"></option>
<option>1</option>
<option>2</option>
</form>
當我從列表中選擇一個選項(1),該URL設置爲http://myserver.com/tests/index.pl?project=
雖然在谷歌我得到它的權利:http://myserver.com/tests/index.pl?project=1
任何意見或方案?
你能解釋一下'雖然在谷歌我得到它right'代表? – Praveen
– CodeBird
並且您的選擇標記未關閉:) – CodeBird