code: function($element, value){
  
        if (value === undefined){
          value = "";
        } else if (typeof value.toUrlValue == "function"){
          value = value.toUrlValue();
        }
  
        if ($element.is(":input")){
          $element.val(value);
        } else {
          $element.text(value);
        }
      }
docs: Assign a given `value` to a single `$element`. If the element is an input, the value is set, otherwise it updates the text content.