layer.open獲取彈出層的input框的值


 

 

 

使用top.$('#txtReason').val();獲取值;
//不通過
function unAuditData(id) {

    parent.layer.open({
        type: 1,
        title: '未通過原因',
        skin: 'layui-layer-molv',
        closeBtn: 0,
        shadeClose: true,
        shade: false,
        area: ['300px', '180px'],
        content:'<div id="mydiv" style="margin-left:10px;margin-top:10px;"><textarea id="txtReason" style="width:280px;height:70px;resize:none;border-radius:6px;border-color:red;" ></textarea></div>',
        btn: ['確定', '取消']
        , yes: function (index, layero) {
            var txtReason = top.$('#txtReason').val();
            alert(txtReason);
        }
    });
};

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM