ホバーされた li 要素に表示したい閉じるボタンがありますが、私のスクリプトは、ホバーされているものだけでなく、リスト内のすべての li を対象としています。
$("#sortable li").hover(function () {
$(".close").show();
},
function () {
$(".close").hide();
});
ホバーされた li 要素に表示したい閉じるボタンがありますが、私のスクリプトは、ホバーされているものだけでなく、リスト内のすべての li を対象としています。
$("#sortable li").hover(function () {
$(".close").show();
},
function () {
$(".close").hide();
});
$("#sortable li").hover(function () {
$(this).find(".close").show();
},
function () {
$(this).find(".close").hide();
});
$("#sortable li").hover(function() {
$(".close", this).show();
},
function() {
$(".close", this).hide();
});