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

java - NullPointerException for a 2d Array -

python - Assemble mpeg file unable to play in mediaplayer -

c# - NameSpace Manager or XsltContent to parse aspx page -