Created
October 3, 2018 10:05
Star
You must be signed in to star a gist
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
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