-4
People is like this when the user clicks on the red div that is the div_2 it would disappear and appear the green div that is the div_1, but this giving an error the red div is not disappearing.
<html>
<head>
<style>
.div_1 { width: 100px; height: 100px; background-color: #060; }
.div_2 { width: 100px; height: 100px; background-color: #300; }
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script>
$(document).ready(function(){
$(".div_1").css("display", "none");
});
$(document).ready(function($) {
$('.div_2').click(function(){
$(".div_1").css("display", "block");
$(".div_2").css("display", "nome");
});
});
</script>
</head>
<body>
<div class="div_1"></div>
<div class="div_2"></div>
</body>
</html>
Again?
nome
!=none
...– brasofilo
KKKKKKKKKKKKKKKKK Dude hadn’t seen this.
– Josimara
This question seems to be out of date because it is about a typo and will hardly be useful to other people.
– bfavaretto
But the mistake is different from before
– Josimara
Check out this other comment that I did. I think it also applies to your case.
– brasofilo
@But you’re totally wrong, I’ve been searching for a solution and nothing.
– Josimara
Okay, it was just an impression... good luck!
– brasofilo