你好,你可以将内联js代码转换为外部js代码,以便如何可能我尝试过但不可能。并且值也没有在dropdownlist中选择,所以如何有可能吗?我的代码是听到值没有在下拉列表中选择,请将内联js代码转换为外部j查询
<select class="form-control" id="ncats" name="ncats" onchange="this.options[this.selectedIndex].value && (window.location = this.options[this.selectedIndex].value);">
<option value="/pr192/index.php?id=10">All</option>
<option value="/pr192/index.php?id=25">Electric</option>
<option value="/pr192/index.php?id=15">Solar</option>
<option value="/pr192/index.php?id=19">Real Estate</option></select>
你的问题很模糊。 –