Trilium Backend API
    Preparing search index...
    • Method for getting the value of input, select, and textarea. Note: Support for map, and function has not been added yet.

      Type Parameters

      Parameters

      Returns string | string[]

      The value.

      $('input[type="text"]').val();
      //=> input_text
    • Method for setting the value of input, select, and textarea. Note: Support for map, and function has not been added yet.

      Type Parameters

      Parameters

      • this: Cheerio<T>
      • value: string | string[]

        The new value.

      Returns Cheerio<T>

      The instance itself.

      $('input[type="text"]').val('test').prop('outerHTML');
      //=> <input type="text" value="test"/>