Skip to content

Instantly share code, notes, and snippets.

@luckydev
Created February 1, 2011 21:48
Show Gist options
  • Save luckydev/806761 to your computer and use it in GitHub Desktop.
Save luckydev/806761 to your computer and use it in GitHub Desktop.
Prototype technique for implementing jQuery live method
Event.observe(window,'load',function(){
$('parent-id').observe('click',function(event){
var element = event.findElement('css_selector_of_our_target_newly_arrived_element');
if(element.tagName == 'tag_in_caps'){
//do anything
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment