#PARDREAMIN2021 |
@PARDREAMIN
Adding text before the submit button
● Can be used to place a privacy policy statement before
the submit button.
● Add this JavaScript to your form --->
● Update the JavaScript with your message.
<script type="text/javascript">
function insertBefore(el, referenceNode) {
referenceNode.parentNode.insertBefore(el,
referenceNode);
}
var newEl = document.createElement('div');
// replace this line with your message
newEl.innerHTML = '<span id="privacy-policy-msg">By
registering I confirm that I have read and agree to
the <a href="https://jennamolby.com/privacy-policy/"
target="_blank">Privacy Statement</a>.</span>';
var ref = document.querySelector('p.submit');
insertBefore(newEl, ref);
</script>