$(document).ready(function() {
function GetDeals() {
alert($(this).attr("id"));
}
$('.filterResult').live("click", function(event) {
GetDeals();
});
});
मुझे GetDeals()
फ़ंक्शन में तर्क के रूप में पास करने की आवश्यकता क्या है ताकि मैं $(this)
के साथ कुशलतापूर्वक उपयोग कर सकूं?
अग्रिम धन्यवाद!
धन्यवाद, दोनों समाधान काम करते हैं :) –