Just use standard DOM functionality:
$('#xxx')[0].outerHTML
Or a bit simpler with .prop()
:
$('#xxx').prop('outerHTML')
More Related Contents:
- Build image slider with carouFredSel with this requirements? [closed]
- Best way to use Google’s hosted jQuery, but fall back to my hosted library on Google fail
- jQuery validate: How to add a rule for regular expression validation?
- How to bind ‘touchstart’ and ‘click’ events but not respond to both?
- How to disable anchor “jump” when loading a page?
- jQuery same click event for multiple elements
- jQuery Uncaught TypeError: Property ‘$’ of object [object Window] is not a function
- load() method deprecated?
- How to combine two jQuery results
- CORS jQuery AJAX request
- How to get a cookie from an AJAX response?
- How to display loading image while actual image is downloading [duplicate]
- How do I make jQuery wait for an Ajax call to finish before it returns?
- Getting 400 bad request error in Jquery Ajax POST
- jQuery Plugin: Adding Callback functionality
- jQuery parse JSON multidimensional array
- Twitter Bootstrap – Tabs – URL doesn’t change
- Can I fade in a background image (CSS: background-image) with jQuery?
- Dynamic Facebook Open Graph tags possible?
- Elements with $ in the id can’t be altered in jquery
- No response from MediaWiki API using jQuery
- Data attribute value updated by jquery is not visible in DOM
- How can I find the closest previous sibling with class using jQuery?
- How to load a Google Maps map inside of a hidden element
- How to preview selected image in input type=”file” in popup using jQuery? [duplicate]
- How can I stop “property does not exist on type JQuery” syntax errors when using Typescript?
- How do you trigger autocomplete “select” event manually in jQueryUI?
- Show/ Hide Table Column with colspan using jQuery
- JQuery Ajax is sending GET instead of POST
- Rails accepts_nested_attributes_for with f.fields_for and AJAX