Contoh 'live'
$(function(){ $("#click_me").live("click",function(){ $("#target").append("Halooooo"); });});
Untuk kode yang sama seperti diatas, dalam jQuery versi >= 1.9
$(function(){ $(document).on("click","#click_me",function(){ $("#target").append("Halooooo"); }); /*Contoh lain misalnya*/ $(document).on("keypress","#input",function(){ alert("pressedd....."); });});
Comment nya boleh :D