jquery-extras

0.1.0 • Public • Published

jquery-extras devDependency Status

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.

Readme

Keywords

Package Sidebar

Install

npm i jquery-extras

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • osxi