I want to add extra data after i use $('#myForm').serialize() + extra data
Active3 months ago
In this form users can add some info for Authors (music, lyric authors) The users have the option to add 1 or more authors. The problem is that when the user enters only 1 author all the other in.
Joko WandiroJoko Wandiro
1,34211 gold badge1313 silver badges2727 bronze badges
3 Answers
What kind of data?
The 'data' parameter is just a URL encoded string. You can append to it however you like. See the API here.
jthompsonjthompson
5,72622 gold badges2828 silver badges3030 bronze badges
Personally, I'd append the element to the form instead of hacking the serialized data, e.g.
That way, you don't have to worry about Bastien Jansen
? or &
![]()
7,63622 gold badges2727 silver badges4949 bronze badges
steadwebsteadweb
6,42611 gold badge1515 silver badges2727 bronze badges
PrakashGPrakashG
1,55744 gold badges1414 silver badges2525 bronze badges
Not the answer you're looking for? Browse other questions tagged jquery or ask your own question.
Active11 days ago
Is it possible to send form elements (serialized with
.serialize() Freenas 9.3 iso download. method) and other parameters with a single AJAX request?
Example:
If not what's the best way to submit a form together with other parameters?
Thanks Crackle sign up.
informatik01
13.6k88 gold badges5858 silver badges9494 bronze badges
KenavRKenavR
1,51377 gold badges2525 silver badges3939 bronze badges
8 Answersserialize() effectively turns the form values into a valid querystring, as such you can simply append to the string:
Jquery Serialize Add Field Name
265k3131 gold badges226226 silver badges261261 bronze badges
Alternatively you could use
form.serialize() with $.param(object) if you store your params in some object variable. The usage would be:
Jquery Serialize Add Field In Windows 10
See http://api.jquery.com/jQuery.param for further reference.
Hassaan
5,45444 gold badges1818 silver badges4040 bronze badges
kliszaqkliszaq
I dont know but none of the above worked for me, Then i used this and it worked :
In form's serialized array it is stored as key value pair
We pushed the new value or values here in form variable and then we can pass this variable directly now.
Rohit AroraRohit Arora
1,82322 gold badges1919 silver badges3838 bronze badges
If you want to send data with form serialize you may try this
43028364302836
Free image gallery html. You can create an auxiliar form using jQuery with the content of another form and then add thath form other params so you only have to serialize it in the ajax call.
FelixukoFelixuko
showdev
22.2k1515 gold badges3939 silver badges5959 bronze badges
SanjaySanjay
I fix the problem with under statement ;send data with url same GET methode
and get value with Hassaan
$_REQUEST['value'] OR $_GET['id']
5,45444 gold badges1818 silver badges4040 bronze badges
Form Serialize
Aziz FazliAziz Fazli
You can also use serializeArray function to do the same. Evolis pebble driver windows 10.
Suresh PrajapatSuresh Prajapat
Jquery Serialize Form PostNot the answer you're looking for? Browse other questions tagged jqueryajaxformsserialization or ask your own question.Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |