Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [HTML][JavaScript]JQuery nie dziąła
MESSIAH :)
post
Post #1





Grupa: Zarejestrowani
Postów: 249
Pomógł: 0
Dołączył: 22.12.2011

Ostrzeżenie: (10%)
X----


Mam taki kod i nie diała na localhost
  1. <!DOCTYPE html>
  2. <meta charset="utf-8">
  3.  
  4. .moj_div {
  5. display:none;
  6. border: 1px solid red;
  7. }
  8. .debug {
  9. display: inline;
  10. border: 1px solid gray;
  11. }
  12. <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
  13. <script>$('.debug').on('click', function() {
  14. $('.moj_div').toggle('slow');
  15. });</script>
  16.  
  17. </head>
  18. <div class="moj_div">
  19. <?php var_dump( $_POST ); ?>
  20. tresc z php
  21. </div>
  22. <div class="debug">
  23. debug
  24. </div>
  25. </body>
  26. </html>
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
ShaggyAG
post
Post #2





Grupa: Zarejestrowani
Postów: 111
Pomógł: 11
Dołączył: 12.10.2014
Skąd: Tarnów

Ostrzeżenie: (0%)
-----



przenies
  1. <script>$('.debug').on('click', function() {
  2. $('.moj_div').toggle('slow');
  3. });</script>

pod
  1. <div class="debug">
  2. debug
  3. </div>

Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 11.10.2025 - 07:54