So I'm trying to update the contents of a div #letters. I tried assigning the element to a variable and updating its content using innerHTML, but it doesn't work.
var $characterArray = $('#letters'); // The letters div
$characterArray.innerHTML = "whatever";
While this works:
document.getElementById("letters").innerHTML = "whatever";
Can you please tell me why?