docs: function getFieldType(fld){//{{{
              var type = (fld.attr("type") || "").toLowerCase();
              if (
                  ! type
                  && fld[0].tagName == "SELECT"
              ) type = "select";
              if (! type) type = "json";
              fld.data("type", type);
              return type;
          }