Jquery InnerHTML



How do I replace the innerhtml of my code using Jquery?

document.myid.innerHTML = 'Hello';



You can use Jquery text() to replace the text:

$('#myid').text('Hello')

You can use html to replace all html structure (means all html tags):

$('#myid').html('Hello');