layer.open 传值问题

layer.open({
                    type:1,
                    title: '1',
                    area: ['500px', '280px'],
                    content: $("#shtips"),
                    btn: ['确认', '取消'],
                    yes: function(index, layero){//下标1开始:index,layero当前弹窗对象
     
                        layer.close(index);
                        layer.msg('审核已提交', {icon: 1});
                        $("#shreason").val("");
                    }
                    
                });

content弹出一个div内容如下

<!-- 审核弹窗 -->
    <div id="shtips"  class="pdAll20 hide1">
        
        <p id='sid'></p>
       
    </div>

请问怎么才能传值给这个DIV的P标签?

阅读 6.4k
1 个回答

使用$('#sid')就可以找到这个平标签了,然后利用jq你就可以对他为所欲为了

推荐问题