html - cannot add line of "row numbers" in textarea -
i tried add textarea line of row numbers example: http://alan.blog-city.com/jquerylinedtextarea.htm
this code , allready use css , js in project:
<!doctype html> <html> <head> <title>code</title> <link href="jquery-linedtextarea.css" rel="stylesheet"> <script src="jquery-linedtextarea.js"></script> </head> <body> <textarea class="lined" name="mytext"></textarea> <script> $(function () { $(".lined").linedtextarea( { selectedline: 1 } ); $("mytext").linedtextarea(); }); </script> </body> </html>
what wrong ?
it seems forget call jquery library...
just add code below on <head>
:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"> </script>
and believe should delete part:
$("mytext").linedtextarea();
i've made code. works me. check out...
<html> <head> <title>jquery linedtextarea demo</title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <script src="http://files.aw20.net/jquery-linedtextarea/jquery-linedtextarea.js"></script> <link href="http://files.aw20.net/jquery-linedtextarea/jquery-linedtextarea.css" type="text/css" rel="stylesheet" /> </head> <body> <h1>jquery linedtextarea demo</h1> <p>add scrollable lined area standard textarea control.</p> <textarea class="lined" rows="10" cols="60"> javascript developed brendan eich of netscape under name mocha, later renamed livescript, , javascript. change of name livescript javascript coincided netscape adding support java technology in netscape navigator web browser. </textarea> <script> $(function() { $(".lined").linedtextarea( {selectedline: 1} ); }); </script> </body> </html>