I want to make an auto translate from the word that I mouse over on it. I use
$('p').hover(function () {
var hoveredWord = $(this).text();
translate(hoveredWord, 'en'); // function to translate a word to English Language
});
It will return the whole text within the paragraph, however, I just want a word that I hover not the whole text. Is there any function in Jquery I can use to archive this? thanks.
The quick fox etc..
`. Then you can add the `hover` to each to `span`. – Halcyon Jul 25 '17 at 13:12