Skip to content

Commit

Permalink
documentation is hard
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzypants1989 committed Oct 21, 2023
1 parent d4a03a8 commit 4561f5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ buttons.become($(".other-button"))
// If you don't want to move things permanently, you can:
// - use cloneTo to make a copy of the current element(s) and attach it to another element
// - set the mode to `clone` on attach to copy another element from elsewhere in the DOM
// However, this will not be able to move event handlers assigned to the original element(s).
const coolDiv = $(".cool-div")
coolDiv.cloneTo(".container", { position: "prepend" })

Expand Down

0 comments on commit 4561f5d

Please sign in to comment.