It is currently Sat Sep 11, 2010 1:01 am

News News of JavaScript and AJAX

Site map of JavaScript and AJAX » Forum : JavaScript and AJAX

Javascript, Javascript Framework, AJAX and related stuff

Automatic Expanding Textarea Using Java Script

AoA/Hi,

this is the sample code of automatic expanding text area as the content of text area is increase its size is also increase. take a demo at

http://shah.ufun.org/expendarea.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body onload="cleanForm();">
<script type="text/javascript">
<!--
function countLines(strtocount, cols) {
var hard_lines = 1;
var last = 0;
while ( true ) {
last = strtocount.indexOf("\n", last+1);
hard_lines ...
Read more : Automatic Expanding Textarea Using Java Script | Views : 24 | Replies : 2


Do know about JQuery

AOA,

Hello buddies are you know about JQuery or you want to learn please Ask Question About Jquery
Read more : Do know about JQuery | Views : 37 | Replies : 0


 

Login  •  Register


Statistics

Total posts 154 • Total topics 56 • Total members 155

cron