Limitar Caracteres De Um "textarea"...
#1
Posted 20/12/2003, 23:03
Alguém pode me dizer se há como limitar o conteúdo de um textarea?
Eu preciso limitar um text area à 256 caracteres e como não é aplicavel o parametro maxlenght="256" eu pensei que, por meio de JavaScrip fosse possível. Se souberem por favor me ensinem.
Valeu.
- RonsisM likes this
#2
Posted 21/12/2003, 02:06
Eu só vou te passar o script aqui, porque eu fiquei bolado com um script q eu passei e não funfou.. E agora eu fiz de novo:
E só pra ti dar um exemplo de tópico q já tinha a resposta q tu buscava:<script>
limite=15; //altere o 15 pelo valor q vc desejar ser o limite de caracteres
rest=limite;
function Verifica() {
if(rest>0) {
rest = limite-document.getElementById("texto").value.length;
document.getElementById("limite").value=rest;
antes = document.getElementById("texto").value;
} else
document.getElementById("texto").value = antes;
}
</script>
<textarea id="texto" onKeyUp="Verifica()" onKeyPress="Verifica()"></textarea>
<BR><input type="text" id="limite" value=15 readonly size=2>
http://forum.wmonlin...showtopic=46155
Vamu procurá viu!?
Fui..
chinello at gmail dot com
System > Athlon 64 3200+ Mobile | Kubuntu 7.04 Fesity Fawn AMD64 | Kernel 2.6.20-16
Coding @ KDE 3.5.7 | PHP 5.2.1 | Apache 2.2.3 | MySQL 5.0.38
#3
Posted 21/12/2003, 02:13
Eu usava a busca, mas ae toda a vez que eu procurava eu nunca achava...
Por isso decidi postar e não revirar tudo pra resolver isso.
Esse code funciona no Netscape tb?
#4
Posted 21/12/2003, 02:17
Já testou?? Não neh!?Esse code funciona no Netscape tb?
Mas é pra funfar sim..
Fui..
chinello at gmail dot com
System > Athlon 64 3200+ Mobile | Kubuntu 7.04 Fesity Fawn AMD64 | Kernel 2.6.20-16
Coding @ KDE 3.5.7 | PHP 5.2.1 | Apache 2.2.3 | MySQL 5.0.38
#5
Posted 21/09/2017, 20:26
Verapamil 240mg Without Prescription
Viagra Generico Envio 24 Horas <a href=http://cialtobuy.com>cialis buy online</a> Cialis Avec Priligy
Cephalexin Std viagra cialis Amoxicillin Used To Treat Chlamidia
Cialis 10 Mg Tadalafil Cephalexin Pet Ward
Cialis In Italia <a href=http://cialtobuy.com>buy cialis</a> Cheaper Alternative To Levitra
Propecia To Buy Propecia viagra cialis Amoxicillin Clavamox
Achat De Cialis Non Generique
Cephalexin Synonym <a href=http://cialtobuy.com>cialis</a> Propecia Testimony
#6
Posted 17/10/2017, 21:02
Levitra Prix Paris online pharmacy Cialis Laboratoire Cephalexin Vs Amoxicillin Tadalafil Kaufen In Deutschland
Buy Now Doxycycline Claravis viagra Proscar Orkut Propecia Amoxicillin For Cats Viagra Cost Per Tablet
#7
Posted 20/10/2017, 16:49
#8
Posted 01/11/2017, 22:02
Is Keflex Good For Teeth Nfection Levitra Suisse 40 mg levitra pills on line for sale Where Can You Buy Pct Pills? Viagra Originale O Generico
#9
Posted 23/11/2017, 01:39
Isotretinoin find Cialis 10mg Tablets Keflex Breast Feeding buy viagra online Cialis Italia Prezzo
Levitra 10 Mg Precio En Farmacia cialis price Propecia Sperm Order Priligy Dapoxetine
#10
Posted 23/11/2017, 23:55
Buy Viagra Jelly Uk Bentyl 20mg Usa Visa Accepted viagra prescription discount generic accutane
Buy Keflex Online Photo Of Amoxicillin West Achat Generique Cialis Professional online pharmacy Will Keflex Treat Gonorrhea Purchase Female Viagraachat De Viagra Purchase Cephalexin Online
Pedir Priligy generic levitra professional Problems Of Propecia
0 user(s) are reading this topic
0 membro(s), 0 visitante(s) e 0 membros anônimo(s)