Skip to content

Instantly share code, notes, and snippets.

@be-mohand
Created November 6, 2019 19:57
Show Gist options
  • Save be-mohand/9d874027382275a62ce1c2880770d83f to your computer and use it in GitHub Desktop.
Save be-mohand/9d874027382275a62ce1c2880770d83f to your computer and use it in GitHub Desktop.
// Hide the div
document.getElementById('bank_account_bank_account_type_div').style.display = "none";
// Select the "GB" value and trigger a change to update the fields to display
var bank_account_bank_account_type_input = document.getElementById('bank-account-type');
bank_account_bank_account_type_input.value = 'GB';
bank_account_bank_account_type_input.dispatchEvent(new Event('change'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment