enltr xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/terms/" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:og="http://ogp.me/ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:sioc="http://rdfs.org/sioc/ns#" xmlns:sioct="http://rdfs.org/sioc/types#" xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#"http://www.w3.org/1999/xhtml/vocab/////////////////Get or Set HTML of element with .html() | BitsyCodehttps://www.bitsycode.com/methods/dom/htmlGet or Set HTML of element with .html() | BitsyCode Get or Set HTML of element with .html() | BitsyCode html not-front not-logged-in no-sidebars page-node page-node- page-node-43 node-type-page

Get or Set HTML of element with .html()



Description: Get the HTML for the first matched element or you can set one or more HTML for every matched element.


    <!doctype html>
    <html lang="en">
      <meta charset="utf-8">
      <title>html demo</title>
      <script src="http://code.bitsycode.com/bitsycode-latest.min.js"></script>
            bitsyCode('div').html("This <b>HTML</b> has been added through BitsyCode"); // SET HTML
            var divHTML = bitsyCode('div').html(); // RETRIEVE HTML


This HTML has been added through BitsyCode

Developed and built with passion and commitment.
Maintained by the bitsycode team.