document.all.regTitle.innerHTML = 'Hello World';
regTitle
is my div
id?html()
function can take strings of HTML, and will effectively modify the .innerHTML property.$('#regTitle').html('Hello World');
text()
function will change the (text) value of the specified element but keep the HTML structure.$('#regTitle').text('Hello world');