The problem is in code $(".div_2").css("display", "nome"); , you meant none .
$(".div_2").css("display", "nome");
none
In addition, see that jQuery has convenient methods for displaying and hiding elements, respectively .show () and .hide () :
$(".div_1").show(); $(".div_2").hide();