Skip to content

Instantly share code, notes, and snippets.

@riix
Created December 24, 2012 02:24
Show Gist options
  • Select an option

  • Save riix/4367168 to your computer and use it in GitHub Desktop.

Select an option

Save riix/4367168 to your computer and use it in GitHub Desktop.
ajaxEventBind
$('#area').load('ajax_child.html?rand='+Math.random()+' div.popup', function(){
// local usage
$('button').on('click',function(e){
e.preventDefault();
alert('클릭');
});
// 또는 해당 영역에 Script Element 생성
var s = document.createElement("script");
s.type = "text/javascript";
s.src = "../js/ui.defer.js";
$("#area").append(s);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment