Been trying to learn html and I'm finally tackling JavaScript. I've somewhat started but I'm lost on what to do. What I want to do is be able to update my site after the user has pressed a checkerbox and also be able to remove said value if the user unchecks the box.
To make it easier to understand I've got a pic of the site:

And what I want it to do is this. Basically, you click a box and the name of the music and it's price get put into the right side of the site and opposite when you uncheck:

Here's the code that is related to the question:
function changeContent(boxElement, divToChange, innerDiv) {
var i = boxElement.value.indexOf("|");
var cleaned = boxElement.value.indexOf(0, i);
var price = boxElement.value.substring(0, i);
s = document.getElementById(divToChange).innerHTML;
s += "<div class =" + innerDiv + ">" + cleaned + "</div>";
document.getElementById(divToChange).innerHTML = s;
}
<div class="chosenSongs">
<label>Du har följande skivor:</label>
<p class = "selectedSongs">Här kommer valda låtar synas</p>
<div class="oneSong" value = "Polisen"></div>
<div class="oneSong" value = "Valhalla"></div>
<div class="oneSong" value = "Raggare på stureplan"></div>
<div class="oneSong" value = "Monster"></div>
<div class="oneSong" value = "Instruktionsboken"></div>
<div class="oneSong" value = "Komplicerad"></div>
<div class="oneSong" value = "Starkare"></div>
<div class="oneSong" value = "wake Me Up"></div>
<div class="oneSong" value = "Hey Brother"></div>
<div class="oneSong" value = "You Make Me"></div>
<div class="oneSong" value = "Levels"></div>
</div>
<div class="price">
<label>Pris:</label>
</div>
<fieldset class="checkbox">
<div class="title">Ringnes-Ronny</div>
<div class="boxContainer">
<label><input type="checkbox" value = "Ringnes-Ronny: Polisen|59"
onclick = "changeContent(this, 'chosenSongs', 'oneSong')">Polisen<span class="time">59 SEK</span></label>
<label><input type="checkbox">Valhalla<span class="time">39 SEK</span></label>
<label><input type="checkbox">Raggare på stureplan<span class="time">49 SEK</span></label>
<label><input type="checkbox">Monster<span class="time">39 SEK</span></label>
</div>
<div class="title">Miss Li</div>
<div class="boxContainer">
<label><input type="checkbox">Instruktionsboken<span class="time">39 SEK</span></label>
<label><input type="checkbox">Komplicerad<span class="time">49 SEK</span></label>
<label><input type="checkbox">Starkare<span class="time">(kan ej beställas)</span></label>
</div>
<div class="title">Avicii</div>
<div class="boxContainer">
<label><input type="checkbox">Wake Me Up<span class="time">59 SEK</span></label>
<label><input type="checkbox">Hey Brother<span class="time">49 SEK</span></label>
<label><input type="checkbox">Waiting For Love<span class="time">(kan ej beställas)</span></label>
<label><input type="checkbox">You Make Me<span class="time">29 SEK</span></label>
<label><input type="checkbox">Levels<span class="time">49 SEK</span></label>
</div>
<div>Välj media:</div>
<div class="boxContainer">
<input type="radio" name = "media"> Spotify
<input type="radio" name = "media"> YouTube
<input type="radio" name = "media"> Apple Music
</div>
</fieldset>