code: function dropdowns () {
    // Set the initial method name (in case it was set by the querystring module)
    setSelectedMethod(form.method.button.val());
  
    // Update each dropdown's label when its value(s) change
    onChange(form.allow.menu, setAllowLabel);
    onChange(form.refs.menu, setRefsLabel);
    onChange(form.validate.menu, setValidateLabel);
  
    // Track option changes
    trackCheckbox(form.allow.json);
    trackCheckbox(form.allow.yaml);
    trackCheckbox(form.allow.text);
    trackCheckbox(form.allow.empty);
    trackCheckbox(form.allow.unknown);
    trackCheckbox(form.refs.external);
    trackCheckbox(form.refs.circular);
    trackCheckbox(form.validate.schema);
    trackCheckbox(form.validate.spec);
  
    // Change the button text whenever a new method is selected
    form.method.menu.find("a").on("click", function (event) {
      form.method.menu.dropdown("toggle");
      event.stopPropagation();
      var methodName = $(this).data("value");
      setSelectedMethod(methodName);
      trackButtonLabel(methodName);
    });
  }
docs: Adds all the drop-down menu functionality