$(document).ready(function() {

  // Use GOV.UK selection-buttons.js to set selected
  // and focused states for block labels
  var $blockLabels = $(".block-label input[type='radio'], .block-label input[type='checkbox']");
  new GOVUK.SelectionButtons($blockLabels);

});

Apply the selection buttons js to block labels
Apply the selection buttons js to block labels

Use GOV.UK selection-buttons.js to set selected and focused states for
block labels.

Documentation here:
https://github.com/alphagov/govuk_frontend_toolkit/blob/master/docs/java
script.md#govukselectionbuttons
