- Dom
- click
- inArray
- merge objects
- query string
- smartcheck
- attr
- addClass
- hasClass
- removeClass
- append
- prepend
- remove
- has
- findAll
- empty
- position
- offset
- outerWidth
- outerHeight
- replaceWith
- html
- text
- val
- parseHTML
- parseJSON
- parent
- next
- prev
- first
- last
- now
- toArray
- size
- Manipulation
- dates compare
- getMonthName
- getDayName
- .NET JSON date
- hashtag
- number Format
- pad
- smallCase
- upperCase
- Forms
- focus
- mobile number
- repetition
- placeholder
- Browser
- browser feature
- Browser Information
- Effects
- hide
- show
- sticky
- scrolline
- goUp
- Animation
- circles
- Google analytics
- Google fonts
.html()
Description: Get the HTML for the first matched element or you can set one or more HTML for every matched element.
Example:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>html demo</title>
<script src="http://code.bitsycode.com/bitsycode-latest.min.js"></script>
</head>
<body>
<div></div>
<script>
bitsyCode.ready(function(){
bitsyCode('div').html("This <b>HTML</b> has been added through BitsyCode"); // SET HTML
var divHTML = bitsyCode('div').html(); // RETRIEVE HTML
})
</script>
</body>
</html>
Preview:
This HTML has been added through BitsyCode
Share