1.0.0 • Published 7 years ago

textposition v1.0.0

Weekly downloads
2
License
MIT
Repository
-
Last release
7 years ago

Examples for jQuery TextPosition

获取输入框选择范围

	$('#element').textposition();

返回内容:

	{
	    start: 0,
	    end: 2
	}

替换选中的文本为指定的内容

	$('#element').textposition('example text');

移动光标到指定位置

	$('#element').moveposition(0, 2);

选中指定范围的文本

	$('#element').moveposition(0, 2, true);

Visit 抚云生活 for more information.