How do I change the inner HTML of div in jQuery?

Asked 2 years ago, Updated 2 years ago, 42 views

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

RegTitle is the ID of the div. I want to do it like this. What should I do?

javascript jquery html

2022-09-22 22:09

1 Answers

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


2022-09-22 22:09

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.