jquery-extras
v0.1.0
Published
Helpful extras for working with jQuery
Downloads
2
Readme
jquery-extras
Helpful extras for working with jQuery
Barfage and Slurpage
These were inspired by paredit-mode for Emacs.
.barfBackward()
Given a jQuery object that represents a DOM element, the .barfBackward()
method moves the first child element to the position immediately before the parent.
.barfFoward()
Given a jQuery object that represents a DOM element, the .barfForward()
method moves the last child element to the position immediately after the parent.
.slurpBackward()
Given a jQuery object that represents a DOM element, the .slurpBackward()
method moves the element before the given selector into the given selector's first child position.
.slurpForward()
Given a jQuery object that represents a DOM element, the .slurpBackward()
method moves the element after the given selector into the given selector's last child position.