I am trying to add border only to the element where my mouse is, but my code is add border to its parent element as well,
My code:
jQuery('body').mousemove(function(e){
var el = e.target;
jQuery(el).hover(function(){
jQuery(this).css('outline','solid 2px #000');
},function(){
jQuery(this).css('outline','');
});
});
Fiddle here: http://jsfiddle.net/howtoplease/gk8t7/