« first day (677 days earlier)      last day (579 days later) » 

13:21
0
Q: Change HTML element by ID

elwinsFound lot of topics about this topic, but none helped me. I have: <div id="text-6" class="block col-228"> Javascript code should add new class fit, so result should be: <div id="text-6" class="block col-228 fit"> How to do that with javascript?

Exact duplicate of stackoverflow.com/questions/195951/…, and the first answer there solves it.

« first day (677 days earlier)      last day (579 days later) »