🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

textposition

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

textposition

Text range tools for jQuery

1.0.0
latest
npm
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

TextRange

FAQs

Package last updated on 05 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts