I have been working in a JavaScript file and my content has been working with phrases. Now I want to change the style of those phrases. The first function (see function swap
You could also just change a class to the element ..
in the swapFE function
phrase.className = 'english';
and in the swapEF function
phrase.className = 'french';
and in your css file
.english{ color:#9b6666; } .french{ font-style:italic; color:#000; }