Jump to content
jimfog

serialzing a form

Recommended Posts

Take a look at this fiddle here. Click edit and then click the plus sign...a new input is added and it;s name attribute value has a different form(form[1]...) than all the other(filled) inputs....

The reason for this is that this only new input gets to be serialized and NOT the others.

Imagine the following though.

The user goes to edit some of the currently filled inputs....the way the name attribute value it is set,serialization cannot take place.

So what could I do in such a case...when editing inputs and not just adding new ones.

Various things come into my mind about it....but I want to hear what you have to say about it.

 

Share this post


Link to post
Share on other sites

Why only submit part of them?  Why not submit everything and figure out on the server what changed?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...