Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Problem z formularzem ajaxowym
amster
post 18.05.2011, 20:35:49
Post #1





Grupa: Zarejestrowani
Postów: 24
Pomógł: 0
Dołączył: 15.02.2011

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


Witajcie:)

Kurcze mam pewien problem z formularzem;// Chodzi o to, że po naciśnięciu przycisku chciałbym żeby pokazywała się wiadomość;/ Niestety nie działa.. Znaczy działa gdy jest samo fieldset, jednak gdy zmieniam na form, wówczas już nie pokazuje się;/
  1. <form class="form" method="POST">
  2. input type="hidden" name="send"/>
  3. <p class="login">
  4. <label for="login">Login</label>
  5. <input class="log" type="text" name="login" id="name" />
  6. </p>
  7. <p class="login">
  8. <label for="haslo">Hasło</label>
  9. <input type="text" name="haslo" />
  10. </p>
  11. <p class="checkbox">
  12. <input type="checkbox" name="pamietaj"><b>Zapamiętaj</b><br />
  13. </p>
  14. <p class="submit">
  15. <input id="sendMail" type="submit" name="submit" onclick="closeForm()"/>
  16. </p>
  17. </form>
  18.  
  19. <span id="message">Formularz został wysłany pomyślnie.</span>


i funkcja wywołująca go:
  1. function closeForm(){
  2. $("#messageSent").show("slow");
  3. setTimeout('$("#messageSent").hide();$("#contactForm").slideUp("slow")', 2000);
  4. }



Baaardzo będę wdzięczny za pomoc..
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Wersja Lo-Fi Aktualny czas: 28.06.2025 - 23:20