![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 1 270 Pomógł: 184 Dołączył: 7.10.2012 Skąd: Warszawa Ostrzeżenie: (0%) ![]() ![]() |
Witam panowie chcialbym sie was zapytac gdyz nie moge sobie poradzic z tym problemem, w jaki sposob mam zserializowac dane z kliknietego formularza? Problem jest taki ze mam duzo formularzy o klasie form i przycisku submit o klasie submit.
Jakies pomysly? probuje w ten sposob ale nie dziala to tak jak powinno: Kod $('.submit').click(function(){
$.ajax({ type: "POST", url: "", dataType: 'json', data: $(this).serialize(), success: function(result){ console.log(result) } }); return false; }); Ten post edytował rad11 30.06.2014, 10:23:23 |
|
|
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 6 806 Pomógł: 1828 Dołączył: 11.03.2014 Ostrzeżenie: (0%) ![]() ![]() |
|
|
|
![]()
Post
#3
|
|
Grupa: Moderatorzy Postów: 36 557 Pomógł: 6315 Dołączył: 27.12.2004 ![]() |
$(this).serialize()
$(this) odnosi sie do submita. A ty zdajesz sie chcesz serializowac formularz a nie submit... |
|
|
![]() ![]() |
![]() |
Aktualny czas: 22.08.2025 - 11:46 |