online/src/js/dropdowns.js
function setSelectedMethod (methodName) {
  form.method.button.val(methodName.toLowerCase());

  methodName = methodName[0].toUpperCase() + methodName.substr(1);
  form.method.button.text(methodName + " it!");
  form.tabs.url.text(methodName + " a URL");
  form.tabs.text.text(methodName + " Text");
}
function setSelectedMethod (methodName) {
  form.method.button.val(methodName.toLowerCase());

  methodName = methodName[0].toUpperCase() + methodName.substr(1);
  form.method.button.text(methodName + " it!");
  form.tabs.url.text(methodName + " a URL");
  form.tabs.text.text(methodName + " Text");
}
function setSelectedMethod ( methodName ) { form . method . button . val ( methodName . toLowerCase ( ) ) ; methodName = methodName [ 0 ] . toUpperCase ( ) + methodName . substr ( 1 ) ; form . method . button . text ( methodName + " it!" ) ; form . tabs . url . text ( methodName + " a URL" ) ; form . tabs . text . text ( methodName + " Text" ) ; }
Updates the UI to match the specified method name

@param {string} methodName - The method name (e.g. "validate", "dereference", etc.)
Updates the UI to match the specified method name