Created
December 13, 2010 20:42
-
-
Save javajosh/739568 to your computer and use it in GitHub Desktop.
This file contains 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
//I like this function! Too bad I didn't need it in the end. | |
//requires: jquery | |
function objectToFormInput(obj){ | |
var result = ''; | |
$.each(obj, function(key,value){ | |
result += '<input type="hidden" name="'+key+'" value="'+value+'" />'; | |
}); | |
return result; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment