Hello, do You know any effective and simple javascript code which allows showing/hiding some webpage content on click?

so far i found this one:
function showhide(idecko){
el.display=(el.display == 'block')?'none':'block';
<style>.hidden {display: none}</style>
<span style="cursor: pointer; cursor: hand;" onclick="showhide('oddil1')">Click me to show/hide</span>
<div id="oddil1" class="hidden">Hidden text here</div>
and it works. By default, text is hidden, when one click it is shown, when click again, it is hidden