Skip to content

ericelliott/jQuery.outerHTML

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

jQuery.outerHTML

Just like .html(), except that it lets you get the HTML of the target element, including the element itself.

Like .html(), you can replace the whole element by passing a value in.

Get

var markup = $('#myElement').outerHTML();

Set

$('#myElement').outerHTML('<div><p>New Stuff!</p></div>');

About

A tiny outerHTML shim for jQuery

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published