/cross-post.js Secret
Last active
September 26, 2018 09:42
Star
You must be signed in to star a gist
This file contains 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
jQuery(document).ready(function($) { | |
function domi(){ | |
alert('adding form click handler and logo'); | |
var d2 = document.createElement('img'); | |
d2.src = 'https://www.hin.ch/wp-content/uploads/2016/03/HIN_nur_logo_klein.png'; | |
d2.id = "hin_logo"; | |
d2.width=100; | |
document.getElementsByTagName('hin_logo_div')[0].appendChild(d2); | |
document.getElementById('hin_logo').onclick=function(){ | |
var field_name_value = document.getElementById('nf-field-17').value; | |
alert('getting field value'); | |
alert(field_name_value); | |
} | |
} | |
domi(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment