I'm trying to execute two functions but it only execute the first one. I think that when I change a HTML variable value, the javascript stops its execution.
This is the code that I'm executing: HTML:
<div class="funcion" onclick="country_function();setGeo(1)">
JavaScript:
function country_function(){        
        region_hide();
        class_hide();
        country_show();
    };
function country_show(){
        var popup = document.getElementById("countrypopmenu");
        popup.classList.toggle("show");
    };
    function country_hide(){
        var popup = document.getElementById("countrypopmenu");
        popup.classList.toggle("hidden");
    };
    function region_show(){
        var popup = document.getElementById("regionpopmenu");
        popup.classList.toggle("show");
    };
    function region_hide(){
        var popup = document.getElementById("regionpopmenu");
        popup.classList.toggle("hidden");
    };
    function class_show(){
        var popup = document.getElementById("classpopmenu");
        popup.classList.toggle("show");
    };
    function class_hide(){
        var popup = document.getElementById("classpopmenu");
        popup.classList.toggle("hidden");
    };
    function setGeo(geoVal) {
      document.getElementByID('geodata').value= geoVal;
      window.alert(geoVal);
    };
Does anyone know why it doesn't execute all the functions?
 
     
     
    