Sunday, October 6, 2019

javascript - 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?


Answer



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

No comments:

Post a Comment

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...