Want to become a Vibe Coder? Join Vibe Coding Training here
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Get and Set HTML Element
WhatsApp
Kannadasan G
Jun 24
2015
1.1
k
0
0
//--- 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
Up Next
Get and Set HTML Element