TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Get and Set HTML Element
Kannadasan G
Jun 24
2015
Code
1.1
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
//--- GET & SET HTML OF ELEMENT ---//
// get element html
var DivHTML = $(
"#DivID"
).html();
// set element html
$(
"#DivID"
).html(
"<p>This is the new html</p>"
);
HTML
Get
HTML Element