You can use on
function of JQuery which works for dynamic elements as well:-(您可以on
对动态元素也起作用的JQuery函数上使用:-)
$(function(){
$('.linkArrow').on('click', function() {
$(this).closest(".collapse").slideToggle("slow");
});
});
Hope this helps.!!(希望这可以帮助。!!) 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…