Is it possible to use more than one element in jQuery hover?
This code is only for a elements but how may you use it for div,texterea,a and li elements together?
Example:
$("a").hover(function () {
var id = $(this).attr("class");
$("#helparea").text(id);
},
function () {
$("#helparea").empty();
});
$("a")selects allaelements.If you want to select more, use
$("div,textarea,a,li").Read jQuery’s documentation on the matter.