<form id="callForm"> <fieldset> Imię: <input type="text" id="name" /> Nazwisko: </fieldset> <fieldset> Ulica: <input type="text" id="street" /> Numer domu: Miejscowość: <input type="text" id="city" /> Kod pocztowy: Telefon(fax): <input type="text" id="phone" /> E-mail: <input type="text" id="email" /> <input type="button" value="cos" id="cos" /> </fieldset> <input type="submit" id='submitton' /> <input type="reset" /> </form>
... który chcę serializować w ten sposób:
.
var pars = $("callForm").serialize(true);
Problem polega na tym, że gdy wyświetlę zmienną "pars" po serializacji to mi pokazuje coś w stylu "[Object objet]", zamiast odpowiedniego stringa.