GeekInterview.com
Series: Subject: Topic:
Question: 5 of 39

Render HTML inside DIV Element

Write a one line code to render HTML inside a DIV element.
Asked by: tallman07 | Member Since Oct-2009 | Asked on: Aug 10th, 2010

View all questions by tallman07

Showing Answers 1 - 1 of 1 Answers

In case of html, this can be done by document.getElementByID("divname").innerHTML("write any html tags u want here ");in case of JQuery, it is done by $("#divname").html("any html");

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.