plik-u

Articles, Tips & Tricks, Usefull Softwares

Menghitung Sisa Huruf / Karakter pada Textarea

Ingin mengetahui berapa huruf lagi yang dapat Anda ketikkan di Textarea? maka gunakanlah script dibawah ini.

<form name=”myForm”
action=”/articles/articles/javascript/dynamictextareacounter.asp?ID=<%=siteID%>”
method=”post”>
<b>One Function to Count and Limit Multiple Form Text Areas</b><br>
<textarea name=”message1″ wrap=”physical” cols=”28″ rows=”5″
onKeyDown=”textCounter(document.myForm.message1,document.myForm.remLen1,125)”
onKeyUp=”textCounter(document.myForm.message1,document.myForm.remLen1,125)”></textarea>
<br>
<input readonly type=”text” name=”remLen1″ size=”3″ maxlength=”3″ value=”125″>
characters left Continue reading

Advertisements

December 15, 2008 Posted by | Programming | , , | Leave a comment