I\'m trying to change the contents of a div when it\'s hovered over using JQuery. I\'ve seen answers on stack overflow, but I can\'t seem to get it working.
I\'ve tried
Easy solution,
var s = document.getElementsByTagName('div'); function out() { s[0].innerHTML = 'hello'; } function ibn() { s[0].innerHTML = 'Myname'; }
Myname