Solved

Clear contents of Div Tag using JavaScript

Posted on 2009-05-06
2
1,289 Views
Last Modified: 2012-05-06
Hi to all,

I am still learning Javascript and was wondering how I would clear the contents of a div tag?

I am using Visual Studio 2008 as well as the JQuery Library.

Thanks
0
Comment
Question by:ALawrence007
2 Comments
 
LVL 12

Accepted Solution

by:
Gibu George earned 500 total points
ID: 24315525
document.getElementById().innerHTML='';
0
 

Author Closing Comment

by:ALawrence007
ID: 31578491
Thanks gibu_george,
Easy and simple..
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
jQuery slideToggle one div at a time instead of all independently 33 76
Index on a Table 6 25
Json Schema 8 32
Button on Table, name table1 not working 4 20
Introduction Chart.js, used properly, can visually add a difference to your charting applications. It engages your visitors and allows them to interact with data they otherwise wouldn't be able to without expensive and complicated systems. For this…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question