Skip to content

punkave/jquery-get-outer-html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jquery-get-outer-html

jquery-get-outer-html provides a simple way to get the "outer HTML" for an element, including the element itself, even in browsers that do not support that natively. Unlike other plugins it does not include a setter for outerHTML, so it is best suited to those who do not need the extra code for a setter in their project.

How to Use

$('.my-element').getOuterHTML();

Requirements

You need jQuery, of course. jquery-getOuterHTML is actively supported with jQuery 1.9 and 2.0 but should work fine with older versions.

About P'unk Avenue and Apostrophe

jquery-get-outer-html was created at P'unk Avenue for use in Apostrophe, an open-source content management system built on node.js. If you like jquery-get-outer-html you should definitely check out apostrophenow.org. Also be sure to visit us on github.

Support

Feel free to open issues on github.

About

Fetch the outer HTML of an element. A tiny plugin containing only a getter implementation for those who don't need a setter for outerHTML.

Resources

License

Stars

Watchers

Forks

Packages

No packages published