Created
April 14, 2016 10:32
-
-
Save nailkhasipov/1b78ad9b5cd409aacd6014dcfc90cc13 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var json = $( "form" ).serializeArray(); | |
$.each( json, function( index, elem ){ | |
$( "[name='" + elem.name + "']" ).val( elem.value ); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment