
19/01/2007, 06:58
|
|
Re: Problema con formulario (sencillo) Te apunto un codigo para evitar introducir más caracteres.
Este codigo va pegado al textarea. Sustituye disponibles por anuncio_info y text_respuesta por anuncio.
onKeyPress="document.form1.disponibles.value = 2000 - document.form1.texto_respuesta.value.length;
if (1 > (2000 - document.form1.texto_respuesta.value.length)) return false;"
onKeyUp="document.form1.disponibles.value = 2000 - document.form1.texto_respuesta.value.length;"
Ah otra cosa mi anuncio_info(dsiponibles) no es un label sino un input readonly. |