javascript - Submit entire dom (values included) -


Is it possible to submit a full domain object, include the value? Let's say I have something like this:

  & lt; Input type = "text" name = "name" id = "name" value = "" />   

The user once entered the name of the user (for example, "my name", I want to get the entire DOM object, so I will get it on the server < Previous> & lt; input type = "text" name = "name" id = "name" value = "** my name **" />

I know I can send the entire intrinsic HTML, but I do not provide the values ​​given by that user.

This is a form of hell There is a jib, but you can catch the whole body (or a portion via #id) using jQuery:

  one "??? $ $ (function () {$ ( 'Form') ('submit', function (e) {e.preventDefault (); var content = $ ('body') .HTML (); Alert (content);}}}}}; a ??? ?    

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -