I have a problem with jquery 1.9.1 . I have searched it but these are not solved my problem.
$('.sm2_expander').live('click', function() {
$(this).parent().parent().toggleClass('sm2_liOpen').toggleClass('sm2_liClosed');
return false;
});
Everybody said that "use 'on' function" but this time my code never work.
$(document).on("click", "a.offsite", function(){ alert("Goodbye!"); });
Edit : Here is my using prject page : draggable link
on
version of$(".sm2_expander").live("click",func)
is$(document).on("click",".sm2_expander",func)
. Don't know where you got"a.offsite"
. – Rocker