setRangeText method

void setRangeText(
  1. String replacement, [
  2. int start,
  3. int end,
  4. SelectionMode selectionMode,
])

The HTMLInputElement.setRangeText() method replaces a range of text in an input or textarea element with a new string.

Implementation

external void setRangeText(
  String replacement, [
  int start,
  int end,
  SelectionMode selectionMode,
]);