日期:2014-05-18 浏览次数:20870 次
$(document).ready(function () { $("N2_ID").change(function () { alert($('#N2_ID option:selected').text()); var n2_id = $("#N2_ID").val(); alert(n2_id); $.ajax({ url: "/Node/GetJudgeN2_ID?nid=" + n2_id, type: 'POST', dataType: 'json', data: null, contentType: 'application/json; charset=utf-8', success: function (data) { if (data == true) { alert("成功!"); } else { alert("操作数据库出错,失败!"); } }, error: function () { alert("出错了,失败!"); } }); }); debugger; });