I'm using a jQuery function to get the value of an checked checkbox.
How to hide the value in the span class "active-usb" if the checkbox is not checked anymore?
HTML
<span class="active-usb"></span><br>
<input type="checkbox" id="getusb" value="Halterung für USB-Stick">
Jquery
$("#getusb").change(function(){
$('.active-usb').text($("#getusb:checkbox:checked").val());
}).change();