我有一个页面里面有table 格式是固定的 由用户填写,填写的内容不定。用户填写好了后点击下面的提交。我想把页面用户填写的table发送到固定邮箱。收件人必须看到用户填写的内容,格式也是table的.(图片也可以,自要收件人能看到就行。!但必须要格式)
17 回答

慕盖茨4494581
TA贡献1850条经验 获得超11个赞
你这和我的有点想进,你这太复杂了。我就要1对1的发送邮件。注:发送前台页面的数据和格式。接受邮件的人看到的和页面看到的是一样的。(表格或图都行)

守候你守候我
TA贡献1802条经验 获得超10个赞
@温柔的意外: 我给个例子你把,把一个div克隆下来,那些不要你就remove(你把整个页面克隆出来)
var html = $('.inner_main_div').clone();
html.find('select[name="formatId"]').after($('#order_form select[name="formatId"] option:selected').text()).remove();
html.find('input[name="PoNo"]').after($('#order_form input[name="PoNo"]').val()).remove();
html.find('input[name="VendorPo"]').after($('#order_form input[name="VendorPo"]').val()).remove();
html.find('select[name="printShopId"]').after($('#order_form select[name="printShopId"] option:selected').text()).remove();
html.find('select[name="overage"]').after($('#order_form select[name="overage"] option:selected').text()).remove();
html.find('.title span').remove();
html.find('input:button').remove();
html.find('.addressUl').css('display', 'block');
html.find('.addressDropdown').remove();
html.find('p:first').remove();
html.find('form').attr('id', '');
html.find('.star_mark').remove();
//html.find('form span').remove();
html.find('div.address-title').remove();
html.find('div.search_action').remove();
html.find('.top_content').css({ margin: "10px 0px 0px 0px", width: "74%" });
html.find('.top_title').css("text-align", "right");
html.find('.shipto_div').css("margin-right", "50px");
html.find('input[type=text]').each(function() {
if ($(this).attr('type') != 'hidden') {
$(this).after($(this).val()).remove();
}
});
- 17 回答
- 0 关注
- 455 浏览
添加回答
举报
0/150
提交
取消