[英]Select tag with onchange event always redirect
if I use onchange event 如果我使用onchange事件
<select ="" name="ifin" id="ifin" onChange="document.location.href=this.options[this.selectedIndex].value;">
then in option I write <option value="#">HPL</option>
, does the hpl have no value? 然后在选项中,我写<option value="#">HPL</option>
,HPL没有值吗? or can I still fill the value in another way? 还是仍然可以通过其他方式填充值?
它的值为“#”,您也可以动态填写它。
<option value="#HPL">HPL</option>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.