function toggle_visibility_of_form_group(form_id, show) {
  let form_element = $(form_id);
  let parent = form_element.parent();

  // kick out if you didn't find what you're looking for
  if(parent.size() <= 0) {
    return;
  }

  if(show) {
    parent.show();
  } else {
    form_element.val('');
    parent.hide();
  }
}
/**
 * Toggle the visibility of a form group
 *
 * @param      {string}    form_id  The form identifier
 * @param      {boolean}   show     Whether to show or hide
 */
Toggle the visibility of a form group
@param      {string}    form_id  The form identifier
@param      {boolean}   show     Whether to show or hide
Toggle the visibility of a form group @param { string } form_id The form identifier @param { boolean } show Whether to show or hide
function toggle_visibility_of_form_group(form_id, show) {
  let form_element = $(form_id);
  let parent = form_element.parent();
  if(parent.size() <= 0) {
    return;
  }
  if(show) {
    parent.show();
  } else {
    form_element.val('');
    parent.hide();
  }
}
function toggle_visibility_of_form_group ( form_id , show ) { let form_element = $ ( form_id ) ; let parent = form_element . parent ( ) ; if ( parent . size ( ) <= 0 ) { return ; } if ( show ) { parent . show ( ) ; } else { form_element . val ( '' ) ; parent . hide ( ) ; } }
Toggle the visibility of a form group
 @param      {string}    form_id  The form identifier
 @param      {boolean}   show     Whether to show or hide
Toggle the visibility of a form group @param { string } form_id The form identifier @param { boolean } show Whether to show or hide
// kick out if you didn't find what you're looking for