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?
Use the isChecked and on inside a document.ready
$(document).ready( $("#getusb").on('change',function(){ if($(this).is(':checked')){ $('.active-usb').text($(this).val()); } else{ $('.active-usb').text(''); } }); )