I am trying to add a class to a list of classes. I have tried using
document.getElementById('sectionRowTitles').className += "sectionFieldRating"
as well as
document.getElementById('sectionRowTitles').setAttribute("class", document.getElementById('sectionRowTitles').getAttribute("class") + "sectionFieldRating")
and also
var sectionFieldRating = document.createElement('div');
document.getElementById('sectionRowTitles').appendChild('sectionFieldRating');
The HTML looks like
<div class="sectionRow" id="sectionRowTitles">
<div class="sectionFieldCourse column">Course</div>
<div class="sectionFieldInstructor column">Instructor</div>
<div class="sectionFieldMethod column">Method</div>
</div>