Template:Readmore

Revision as of 19:08, 11 August 2016 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<script> $(function(){ /* to make sure the script runs after page load */

   $('a.read_more').click(function(event){ /* find all a.read_more elements and bind the following code to them */
       event.preventDefault(); /* prevent the a from changing the url */
       $(this).parents('.item').find('.more_text').show(); /* show the .more_text span */
   });

}); </script>