POST提交火狐下取不到值
页面中有【预览】【保存】两个按钮。
页面1:index.aspx;页面2:show.aspx。
我想点击预览的时候,打开页面2,并将页面1中的一个div中的html显示到页面2上。
实现代码如下:
<script type="text/javascript"> $(function () { $("#showcontent").click(function () { $("#<%=hdcontent.ClientID %>").val($("#divcontent").html()); $("form").attr({ "action": "showcontent.aspx", "target": "_blank" }); $("form").submit(); $("form").attr({ "action": "index.aspx" }); $("form").removeAttr("target"); }) }) </script>