$("body").on("click",".layui-input-inline:eq(3)",function(){
        $(this).find("dd").click(function(){            
            var examId = $(this).attr("lay-value");
            if("0"!=examId){
                var herf = "/exam_papers?exam_>examId;
                $.getJSON(herf, function(json) {
                    var n = json.length;
                    var html = "";for(var i=0;i<n;i++){var html = "<option value='"+ json[i].id +"'>"+json[i].title+"</option>";
                        $("#examPaperSelect").append(html);
                    }
                });
            }
        });
    });

http://www.w3school.com.cn/jquery/ajax_getjson.asp

相关文章:

  • 2021-06-21
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-29
  • 2022-12-23
  • 2021-07-15
  • 2022-12-23
  • 2021-07-15
  • 2022-12-23
  • 2022-02-26
相关资源
相似解决方案