This should toggle the display of the full div by clicking on the actual div, you can add the click event to any click you want.
HTML:
<div id="blah"> Long...Content </div>
JavaScript:
$('#blah').css({height:'20px', overflow:'hidden'}); $('#blah').on('click', function() { var $this = $(this); if ($this.data('open')) { $this.animate({height:'20px'}); $this.data('open', 0); } else { $this.animate({height:'100%'}); $this.data('open', 1); } });
Showing that with javascript it will not initially hide the div unlimitedly for users without enabling javascript.
source share