How to change text on hover jquery
HTML
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<a href="#" id="hoverelement">Hover Me</a>
JavaScript
$(document).ready(function(e) {
$('#hoverelement').hover(function(){
$main_text=$(this).text();
$(this).text("This is a text on hover");
},function(){
$(this).text($main_text);
});
});