Skip to content

Instantly share code, notes, and snippets.

@ehynds
Created July 26, 2010 18:29
Show Gist options
  • Save ehynds/490994 to your computer and use it in GitHub Desktop.
Save ehynds/490994 to your computer and use it in GitHub Desktop.
// A
$this.find("li")
.wrapInner('<a href="#" style="display:block" />')
.delegate("a", "click", function(){
$this.dialog("close");
return false;
});
// B
$this.find("li")
.wrapInner('<a href="#" style="display:block" />')
.delegate("a", "click", function(){
$this.dialog("close");
return false;
});
// C
$this
.find("li")
.wrapInner('<a href="#" style="display:block" />')
.delegate("a", "click", function(){
$this.dialog("close");
return false;
});
// D
$this
.find("li")
.wrapInner('<a href="#" style="display:block" />')
.delegate("a", "click", function(){
$this.dialog("close");
return false;
});
// E
$this.find("li").wrapInner('<a href="#" style="display:block" />').delegate("a", "click", function(){
$this.dialog("close");
return false;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment