All Projects → NightCatSama → textarea-line-number

NightCatSama / textarea-line-number

Licence: other
textarea标签自动显示行号(Textarea tags automatically displays line Numbers)

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

textarea-line-number

###textarea标签自动显示行号(Textarea tags automatically displays line Numbers)

DEMO

###html

<body>
  <textarea type="text" id="text" class="text"></textarea>
  <script src="./js/jquery-1.12.0.min.js"></script>
  <script src="./js/auto-line-number.js"></script>
</body>

###JavaScript

	$("#textarea").setTextareaCount();

###Option width 行号条的宽度,默认30px color 行号条的字体颜色,默认#FFF bgColor 行号条的背景颜色,默认#333 display 行号条的类型,默认block

###Example 支持使用类名可同时多个配置

	$(".textarea").setTextareaCount({
	  	width: "30px",
		bgColor: "#999",
		color: "#FFF",
		display: "block"
	});
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].