Skip to content

Instantly share code, notes, and snippets.

@zappingseb
Created October 3, 2018 10:05
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save zappingseb/862fa1daef483a89c9f4818679250449 to your computer and use it in GitHub Desktop.
getValue: function(el) {
// create an empty output array
var output = []
// go over each input element inside the
// defined InputBinding and add the ID
// and the value as a dictionary to the output
$(el).find("input").each(function(inputitem){
output.push({
name: $(this).attr("id"),
value: $(this).val()
});
});
// return the output as JSON
return(JSON.stringify(output))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment