Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Angelic Sanoy
seal-mask
.a{fill-rule:evenodd;}techdegree
Angelic Sanoy
Full Stack JavaScript Techdegree Student 6,580 Points

Repositioning the li to a new class - Append Or innerHTML

We need to have 2 categories in our course but the app we can using doesn't support two categories so the work around I did is to insertHTML to its siblings to create a two categories.

In total, we can 11 in total categories but I wanted to separate the audio, video, texted to the new category I created called Format

Section

  • Santé public
  • Contrôle prévisionnel
  • Education
  • Science
  • Art & Culture
  • Pratique du contrôle
  • Religion
  • Complément de l'auteur
  • audio
  • vidéo
  • texte

Format

Can you guide me how to append the audio, video and text to "Format" html that I created called addedHTML?

Thanks a lot! See my codepen here for reference

Steven Parker
Steven Parker
230,274 Points

When I look at the pen, I see 8 items under "Sections" and 3 under "Format" — isn't that correct? I'm not sure what you need help with.

Steven Parker
Steven Parker
230,274 Points

If you no longer need a question, you can delete it — click the little rectangle with the 3 dots to reveal the option to "Delete Question".