-
-
Save rainbat/511cc121e5836db626bf9eedb94845f6 to your computer and use it in GitHub Desktop.
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