You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
440 B

  1. $(function() {
  2. $("#method-down").change(function() {
  3. var method = this.value;
  4. $("#body-down-group").toggle(method != "GET");
  5. });
  6. $("#method-up").change(function() {
  7. var method = this.value;
  8. $("#body-up-group").toggle(method != "GET");
  9. });
  10. // On page load, check if we need to show "request body" fields
  11. $("#method-down").trigger("change");
  12. $("#method-up").trigger("change");
  13. });