Created
November 18, 2021 16:32
-
-
Save stoffl6781/1fc012102b4d432e9f87a33c32986751 to your computer and use it in GitHub Desktop.
Get content from an ID and replace as link on another Button
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var email = document.getElementById('text_email').innerText; | |
(function($) { | |
$(document).ready(function(){ | |
var button_email = document.getElementById('email_button'); | |
button_email.href = "mailto:"+email+" "; | |
}); | |
}(jQuery)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment