I am newbie to jquery
and I would like to know the difference between a
$("#element").on("click", function(event){ });
and
$("#element").live("click", function(event){ });
function.
I am newbie to jquery
and I would like to know the difference between a
$("#element").on("click", function(event){ });
and
$("#element").live("click", function(event){ });
function.
Well for one $.live()
is deprecated as of 1.7.
Also for more details you can check this answer: What's the difference between jQuery .live() and .on()