$(document).ready(function() {
function GetDeals() {
alert($(this).attr("id"));
}
$('.filterResult').live("click", function(event) {
GetDeals();
});
});
내가 $(this)
으로 조작 할 수 있도록 함수 GetDeals()
에서 인수로 전달해야하는 것은 무엇입니까?
미리 감사드립니다.
감사합니다, 두 가지 해결책 모두 작동합니다 :) –