i try to use jquery's on()-Method in combination with hover(). I want that the user hovers over a div, gets a value displayed and when moving his mouse away from that div see the old value again, but this is not working... Does anybody have a clue?
$('#content').on('hover', '.player_marktwert_box',
function() {
var playerValue = $(this).html();
$(this).html("test");
},
function () {
$(this).html(playerValue);
}
);
Thanks!