Posts by João Pedro • 97 points
2 posts
-
1
votes0
answers66
viewsQ: Appearance of border not reported
var images = $("[data-img]"); images.mouseenter(function() { $(this.dataset.img).css('box-shadow', "inset 0 0 20px black"); }); images.mouseout(function(){ $(this.dataset.img).css('box-shadow', "");…
-
6
votes4
answers124
viewsQ: Help in refactoring jquery code
$(".img1").mouseenter(function() { $(this).css('box-shadow', "inset 0 0 20px black"); }); $(".img1").mouseout(function(){ $(this).css('box-shadow', ""); }); $(".img2").mouseenter(function() {…
jqueryasked João Pedro 97