Replace the innerHTML of a div with id regTitle

Exactly, @joe-elmoufak ! I’ve been using jQuery for years, and whenever I need to update the contents of a div, the .html() method is always my first choice:

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

It’s pretty much the jQuery innerhtml equivalent, but it adds an extra layer of convenience. It takes care of any internal jQuery management, ensuring consistency across browsers and keeping the code simple. So much easier than dealing with plain JavaScript quirks!