MCPcopy Create free account
hub / github.com/jsfiddle/togetherjs / select

Function select

togetherjs/tests/func_forms.js:66–72  ·  view source on GitHub ↗
(start, end)

Source from the content-addressed store, hash-verified

64}
65
66function select(start, end) {
67 if (end === undefined) {
68 end = start;
69 }
70 $textarea[0].selectionStart = start;
71 $textarea[0].selectionEnd = end;
72}
73
74Test.waitMessage("form-update");
75$textarea.val("hello");

Callers 1

func_forms.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected