mercredi 15 avril 2015

JQuery: Submit Data to server from different fields not in same form

In jquery, when you want to submit a form



$(document).ready(function(){
$("form").submit(function(){
alert("Submitted");
});
});


My problem is: I have a bunch of fields (that not in same form, or not in any form at all). And when I press send button, jquery will get values of all those fields and send to server (as sending a form).


I don't know how to this in jquery. Please tell me


thanks :)


Aucun commentaire:

Enregistrer un commentaire