I am facing a challenge with my drag and drop functionality using jQuery. While the drag drop feature works perfectly, I need to display two separate pieces of information from a database on each "li" item in different styles.
My goal is to include a "track length" for each list item and have it styled differently in terms of background and text color, while still being contained within the same "li" element so that it remains draggable. Is there a clean and efficient way to achieve this using basic HTML/CSS?
<ul class="songs">
<li class="song_title track_length">Title 1<span class="length">3:30</span></li>
<li class="song_title track_length">Title 2<span class="length">4:15</span></li>
</ul>