We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9897832 commit 3fad8ecCopy full SHA for 3fad8ec
1 file changed
WKJavaScriptController-Demo/WKJavaScriptController-Demo/index.js
@@ -2,7 +2,11 @@ function submit() {
2
var values = {};
3
Array.prototype.slice.call(document.getElementsByTagName('input')).forEach(function(el) {
4
if (el.type !== 'button' && el.type !== 'radio') {
5
- values[el.id] = el.value;
+ if (el.id === 'zip_code') {
6
+ values[el.id] = parseInt(el.value);
7
+ } else {
8
+ values[el.id] = el.value;
9
+ }
10
}
11
});
12
if (isChecked('input_json')) {
0 commit comments