html - Change content of a div using JavaScript -


How to dynamically change the contents of a device using Javascript

should do this:

  & lt; Div id = "foo" & gt; Div that you want to change & lt; / Div & gt;  

and in JavaScript:

  document.getElementById ('foo'). InnerHTML = 'Your Content';  

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -