Video Tutorial JavaScript Code Snippet document.addEventListener('DOMContentLoaded', function() { jQuery(function($){ $('.showsection').each(function(i){ $(this).click(function(){ $('.hidesection').eq(i).show(); $('.showsection'); }); }); }); }); </script> <style> .showsection{ cursor: pointer; } .hidesection{ display: none; } </style> }
Comments
Post a Comment