I have got a task to create a game. For that I need some help... How can I change the value of a div by clicking on it?
<div class="block1">
<div id="two">Two</div>
</div>
js code :
$( ".block1" ).click(function() {
$( "#one" ).css('display','block');
$( "#two" ).css('display','none');
$( "#three" ).css('display','none');
$( "#four" ).css('display','none');
});