You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example,can I transform test1() to test2()?
function test1() {
$("img").mouseenter(function(e) {
$(this).css("opacity", 0.5);
}).mouseout(function(e) {
$(this).css("opacity", 1.0);
});
}
Description
For example,can I transform test1() to test2()?
function test1() {
$("img").mouseenter(function(e) {
$(this).css("opacity", 0.5);
}).mouseout(function(e) {
$(this).css("opacity", 1.0);
});
}
function test2() {
$("img:odd").mouseenter(e => {
$(this).css("opacity", 0.5);
}).mouseout(e => {
$(this).css("opacity", 1.0);
});
}
Link to test case
The text was updated successfully, but these errors were encountered: