tonyf tonyf - 5 months ago 26
Javascript Question

How to replace innerHTML of a div using jQuery?

How could I achieve the following:

document.all.regTitle.innerHTML = 'Hello World';


using jQuery where
regTitle
is my div ID?

Zed Zed
Answer
$("#regTitle").html("Hello World");