A
A
Atheist212020-05-11 10:35:25
JavaScript
Atheist21, 2020-05-11 10:35:25

Why aren't option tags removed from the pseudo-array?

https://jsfiddle.net/g0tdLkr1/

Why, when changing the selecta with countries, not all options are removed using the remCity() function? What's wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hzzzzl, 2020-05-11
@hzzzzl

the easiest

function remCity() {
    city.innerHTML = ''
  }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question