I have one function that refreshes the div but the then the jquery function won't work any more. I've seen answers where I have to use the about it losing the bindings but I can't get it to work.
refresh div code working fine
$(document).on('click', '#reload', function () {
//Load next question
$("#new_sen").load(" #new_sen");
});
My code that won't work after div refresh
$(".card_flip").on('click', function() {
$(this).toggleClass('flipped');
})
Thanks for any help.