Skip to content

Commit 34e4f03

Browse files
committed
Range demo
1 parent 62f08f3 commit 34e4f03

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

index.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,17 @@ A `$.Range` instance offers the following methods:
305305
</li>
306306
</ul>
307307

308+
The following example uses `jQuery.range` to
309+
310+
- Show the start end end offset of the selection
311+
- Show the selected plain text
312+
- Add a green border on the left to the start element
313+
- Add a red border on the right to the end element
314+
- Put a dotted outline around the parent element
315+
316+
<iframe style="width: 100%; height: 300px" src="http://jsfiddle.net/vKSzN/embedded/result,html,js,css" allowfullscreen="allowfullscreen" frameborder="0">JSFiddle</iframe>
317+
318+
308319
## selection `$(el).selection([start], [end]) -> Object|jQuery`
309320

310321
[Annotated source](http://donejs.com/jquery/docs/jquery.selection.html)

0 commit comments

Comments
 (0)