我正在使用 jquery 在 textarea 旁边显示行。从这个链接: http ://alan.blog-city.com/jquerylinedtextarea.htm
有什么方法可以更改所选行,因此每次用户转到下一行时,所选行都会更改为当前行。
$(function()
{
// Target all classed with ".lined"
$(".lined").linedtextarea(
{
//change it from 1 to the current line that the user on.
selectedLine: 1
});
// Target a single one
$("#mytextarea").linedtextarea();
});