zoukankan      html  css  js  c++  java
  • 用jquery获取tbody下的第一个tr的最后一个td里面的值

    用jquery获取tbody下的第一个tr的最后一个td里面的值:re_process_old = $(".re_process_list tr:first td:last").text();
    function(index, layero){
                    var re_content = layero.find("#re_content").val();
                    var re_process = layero.find("#re_process").val();
    
                    //re_process_old = layero.find("#re_process").val();
                    re_process_old = $(".re_process_list tr:first td:last").text();
    
                    if(re_process){
                        if(re_process<re_process_old){
                            $.modal.alertWarning('整改进展不能小于当前值 !');
                        }
                        if(re_process==null){
                            $.modal.alertWarning('整改进展不能为空 !');
                        }
                    }
                    if (re_content) {
                        if(re_content.length > 300){
                            $.modal.alertWarning('进展内容不能超过300字!');
                            return;
                        }
                        var url = ctx + "base/sup/ques/re_process/add";
                        $.post(url, {reContent: re_content, reProgress: re_process,
                                     supFeedbackQuesId: [[${baseSupFeedbackQues.supFeedbackQuesId}]]},
                            function (result) {
                                if (result.code === web_status.SUCCESS) {
                                    get_re_process();
                                    layer.close(index);
                                } else {
                                    $.modal.alertError(result.msg);
                                }
                            }
                        );
                    } else {
                        $.modal.alertWarning('进展内容不能为空!');
                    }
                }
            });
  • 相关阅读:
    auto_ptr解析
    C++ auto_ptr智能指针的用法
    C++ 默认构造函数
    phpdisk 盲注 &前台任意用户登录
    冒泡排序
    关于C++中的友元函数的总结
    python中的闭包
    reverse Polish notation
    PostScript
    sqlite
  • 原文地址:https://www.cnblogs.com/liqinzhen/p/13607976.html
Copyright © 2011-2022 走看看