$(document).ready(function () {
$("#divHeader")) {
$(this).hover(function () {
$(this).find('#edit').show();
$(this).find('#spandate').removeClass("datetime");
$(this).find('#spandate').addClass("edit");
},
function () {
$(this).find('#edit').hide();
$(this).find('#spandate').addClass("datetime");
$(this).find('#spandate').removeClass("edit");
});
});
私のページには、同じ名前 ("divHeader") の 3 つの div がありますが、最初の div のみを適用し、他の 2 つをスキップします。
IDを使って一括申請する方法を教えてください。