How to call hidden div tags by ID or Class in Jquery.
Example:
HTML:
<div id="off" style="display:none"> <p> Show me </p> </div> <button id="load">Load Selected DIV</button>
Script:
<script type="text/javascript"> $(function(){
$("#load").click(function(e){ e.preventDefault(); $("#off:hidden").slice(0, 10).show(); if ($("#off:hidden").length == 0){ return false; } }); }); </script>
If you have better solutions, please share in the comments. Thank you!