Check documentation for the latest version of dhtmlxSuite selectTextRange DHTMLX Docs

selectTextRange

selects text in input/textarea

void selectTextRange(string|number|HTMLElement inp,number start,number end);

Parameters

inpstring|number|HTMLElementid or object
startnumberstart position
endnumberend position

Example

var input = document.getElementById("someInputId");
window.dhx.selectTextRange(input, 0, input.value.length-1);

Back to top