日期:2014-05-16  浏览次数:20672 次

用AJAX做下拉框级联
 <script language="javascript"type="text/javascript">
 2                         $(document).ready(function () {
 3                             var gettime = function () {
 4                                 var dt = this.options[this.selectedIndex].value;//获取当前触发Change事件select控件当前选中项的值
 5                                 $.get("./FTimeList", { date: dt, time: new Date().getTime() }, function (data) {//将选中值传入,作为查询条件
 6                                     var time = data.getElementsByTagName("time");//以<time></time>为标签去子元素,list
 7                                     var hl = "";
 8                                     for (