Skip to content

Instantly share code, notes, and snippets.

View JosukeH's full-sized avatar
馃彔
Working from home

Carlos Alva JosukeH

馃彔
Working from home
  • Le贸n, Gto.
  • 12:53 (UTC -06:00)
View GitHub Profile
@JosukeH
JosukeH / deleteCountry.js
Last active June 7, 2022 19:08
delete country
window.addEventListener('DOMContentLoaded', (event) => {
if (document.getElementById("shippingAddress.country")) {
document.getElementById("shippingAddress.country").options.length = 0;
countrySelect = document.getElementById('shippingAddress.country');
countrySelect.options[countrySelect.options.length] = new Option('M茅xico', 'MX');
countrySelect.options[countrySelect.options.length] = new Option('Estados Unidos', 'US');
};
console.log('hello mundo mundano')