它对我不起作用..这是正确的。我怀疑这一行data: "ch=" + dropdown&"ch2=" + dropdown2&"ch3=" + dropdown3,
是否可以帮我检查一下
<script>
function dynamic_Select(dropdown) {
$.ajax({
type: "GET",
url: 'att-filt.php',
data: "ch=" + dropdown&"ch2=" + dropdown2&"ch3=" + dropdown3,
dataType: "html",
success: function(html){ $("#txtResult").html(html); $("#firstresult").css("display", "none"); }
});
}
</script>
<form>
<input type="text" id="dropdown" name="dropdown">
<input type="text" id="dropdown2" name="dropdown1">
<input type="text" id="dropdown3" name="dropdown2">
<input type="button" value="submit" onclick="dynamic_Select(this.value)">
</form>