Skip to content

Instantly share code, notes, and snippets.

@rainbat

rainbat/cross-post.js Secret

Last active Sep 26, 2018
Embed
What would you like to do?
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
You can’t perform that action at this time.