Support radio, checkbox and select in form #125

Closed
BiserStoilov wants to merge 4 commits from master into master
Showing only changes of commit 6557b59b9f - Show all commits

View File

@@ -52,15 +52,15 @@ var formAction = function(el, event) {
// jscs:enable disallowImplicitTypeConversion
var elementType
if (element.tagName.toLowerCase() === "input") {
if (element.type === "text") {
elementType = "input"
}
if (element.type === "checkbox") {
elementType = "checkbox"
}
if (element.type === "radio") {
elementType = "radio"
}
else {
elementType = "other"
}
}
if (element.tagName.toLowerCase() === "select") {
elementType = "select"