jQuery总结(九)

状态改变的jq写法

    $(document).ready(function() {
        //Ajax写这里

        $("#selModules").change(function() {
            var checkObj=$(this).val();
            //alert($(this).val());
            $.post(
            "selectNotesType.do",
             {"ids" : checkObj},
             function(data) {
                // 提示信息
                //alert(data);
                location.href = "findAll.do?type=" + data;
            });

        });
    });

你可能感兴趣的:(jQuery总结(九))