hide a div with javascript in materialize css

0

I want to know how to do to show a div that is hidden by the class "hide" in materialize. If I run in this way Id_div.className -="hide"; it works perfectly but if I use the variable as below the function stops working showing the undefined hide message.

function mostrar(Id_div){
 var x=Id_div;
 x.className -= "hide";
}
    
asked by jufrfa 03.08.2017 в 20:57
source

0 answers