<button id="my">Press me</button> <script> my.onclick = function () { $('.va-content').each(function () { $(this).css({ display: 'block'}) }) } </script>