I have two dropdown lists how to bind that using jquery from back endWhat I have tried:$.ajax({ type: "POST", contentType: "application/json; charset=UTF-8", url: "ddlBind.aspx/ddlDataBind", data: {}, dataType: "json", success: function (data) { var SharedAOC = JSON.parse(data.d); var finalData = SharedAOC.Table; debugger; $.each(finalData, function (key, value) { $("#ddlCity").append($("<option></option>").val(value.City).html(value.City)); $("#ddlState").append($("<option></option>").val(value.State).html(value.State)); }); debugger; $.each(finalData, function (key, value) { $("#ddlState").append($("<option></option>").val(value.State).html(value.State)); }); }, 解决方案 这篇关于如何使用mysql中的jquery一次绑定两个下拉列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 11-02 06:00