Suppose there is such a layout
<div class="1"> <!-- some content--> </div> <div class="1"> <!-- other content--> </div>
I need that when you hover on a specific div of class 1, the action takes place exactly with the div on which it induced
Suppose there is such a layout
<div class="1"> <!-- some content--> </div> <div class="1"> <!-- other content--> </div>
I need that when you hover on a specific div of class 1, the action takes place exactly with the div on which it induced
$('.class_name').hover(function(){ $(this).css('background-color','#CCC'); }); $('.class_name').mouseenter(function(){ $(this).css('background-color','#CCC'); }); $('.class_name').mouseover(function(){ $(this).css('background-color','#CCC'); });
$('div').mouseover(function () { $(this).text('true'); });
Source: https://ru.stackoverflow.com/questions/99823/
All Articles