<li role="presentation" class="course-nav-tab-curriculum">
<a href="#tab-curriculum" data-toggle="tab">
<i class="fa fa-cube"></i>
<span>Plan estudios</span>
</a>
</li>
My goal is to change the text of "Study plan" for "Lessons" I can only use javascript and so far I have this:
var x = document.getElementsByClassName("fa-cube");
var i;
for (i = 0; i < x.length; i++) {
x[i].innerHTML = "Lecciones";
}
my problem is that I am changing the label "i" but not the "span" that is inside, I appreciate the help in this little problem