i am unable to use setSelectionRange(0,0) on a textarea component
tried on both jewel and spectrum
tried all these option
input.text = ""; // Clear the box
input.focus();// Set focus
above two works fine
- input.element.setselectionRange(0, 0); // - NOT ACCEPTING
- document.getElementById("input").setSelectionRange(0, 0); // - NOT ACCEPTING
- var nativeInput:* = input.element as Object;
if (nativeInput && nativeInput.setSelectionRange != null) {
nativeInput.setSelectionRange(0, 0);
}
tried all 3 options none works - plz suggest some