在我的联系表格7中,我使用管道系统,但我想将电子邮件地址保存到其他领域,所以我如何获得任何帮助,例如,电子邮件值到这个短代码电子邮件中,我需要保存这个值email1。
下拉代码:
[select* email-recipient include_blank "ECommerce Development|test@gmail.com" "Web Development|test@gmail.com" "Mobile Application Development|test@gmail.com" "Digital marketing|test@gmail.com" "IOT|test@gmail.com" "Chatbot|test@gmail.com"]输入值:[hidden hidden-701 "Pipe email"]
发布于 2018-09-12 05:09:16
在选定的联系人表格7的下拉列表中设置id属性
[select* email-recipient include_blank "ECommerce Development|harshk.magneto@gmail.com" "Web Development|harshk.magneto@gmail.com" "Mobile Application Development|harshk.magneto@gmail.com" "Digital marketing|harshk.magneto@gmail.com" "IOT|harshk.magneto@gmail.com" "Chatbot|harshk.magneto@gmail.com" id:email-recipientemail-recipient]转到主题的footer.php文件,即wp内容\主题\themename,并添加下面的代码。
<?php if(is_page(ID)) { ?>
<script type="text/javascript">
jQuery(document).ready(function () {
jQuery(document).on('change', '#email-recipient', function(){
jQuery("input[name=hidden-701]").val(jQuery('select#email-recipient option:selected').val());
});
});
</script>
<?php } ?>其中ID是页面id,其中包含此联系人表单。
https://stackoverflow.com/questions/52287533
复制相似问题