code: function getFieldData($, $input) {
      var fieldData = {};
  
      var fieldName = $input.attr('name');
      fieldData['name'] = fieldName;
  
      var fieldType = getFieldType($, $input);
      fieldData['type'] = fieldType;
  
      var fieldHelp = getFieldHelp($, $input);
      if(fieldHelp) {
        fieldData['help'] = fieldHelp;
      }
  
      // Add options for select and font types.
      if(fieldType === 'select' || fieldType === 'font') {
        fieldData['options'] = getFieldOptions($, $input);
      }
  
      // Add default for text-single and text-multi types, if present.
      if(fieldType === 'text-single' || fieldType === 'text-multi') {
        var fieldDefault = getFieldDefault($, $input);
        if(fieldDefault) {
          fieldData['default'] = fieldDefault;
        }
      }
  
      // Add width/height for file types.
      if(fieldType === 'file') {
        if($input.data('maxWidth')) {
          fieldData['width'] = $input.data('maxWidth');
        }
        if($input.data('maxHeight')) {
          fieldData['height'] = $input.data('maxHeight');
        }
      }
  
      // Add cols/rows for text-multi types.
      if(fieldType === 'text-multi') {
        if($input.attr('cols')) {
          fieldData['cols'] = $input.attr('cols');
        }
        if($input.attr('rows')) {
          fieldData['rows'] = $input.attr('rows');
        }
      }
  
      return fieldData;
    }
docs: Extract field information from the given $input.