Good day! How to make that at the initial state 50% of this div was shown, and after pressing the button another 50% was shown?
<script> function change(idName) { if(document.getElementById(idName).style.display=='none') { document.getElementById(idName).style.display = ''; } else { document.getElementById(idName).style.display = 'none'; } return false; } </script> <div style="display:none;" id="test"> <div class="hide"> Подкатегории: <a href="#"> Белые комоды</a> <a href="#"> Большие</a> <a href="#"> В гостиную</a> </div> </div> <a href="#" onclick="change('test')">Ещё</a>