CSS skills: 5) jquery hover(over,out)

1048 ワード

     
$(":div[name=div_edit]").each(function() { $(this).hover(function() { $(this).find(">div:first-child").hide(); $(this).find(">div:last-child").show(); }, function() { $(this).find(">div:first-child").show(); $(this).find(">div:last-child").hide(); }); });