function hideRadioLabels() { $("td label").contents().filter(function(){ return (this.nodeType == 3); }).remove(); $("td label input").removeClass('form-check-input') }