<head> <meta http-equiv="Content-Type" content="text/html; charset=utf8" /> <script type="text/javascript"> $(document).ready( function() { $("#link1").click( function() { $("#more1").show(); $("#more2").hide(); $("#more3").hide(); }); $("#link2").click( function() { $("#more1").hide(); $("#more2").show(); $("#more3").hide(); }); $("#link3").click( function() { $("#more1").hide(); $("#more2").hide(); $("#more3").show(); }); }); </script> </head> <body> <div> <p>Lorem ic, posuere ac. </p> </div> </body>
PS: znalazłem właśnie coś takiego:
http://ferrante.pl/frontend/javascript/jqu...twe-5-zakladki/
Może uda mi się zrozumieć to dzisiaj
