Ver Mensaje Individual
  #9 (permalink)  
Antiguo 25/06/2009, 02:31
GagleKas
 
Fecha de Ingreso: abril-2008
Mensajes: 141
Antigüedad: 16 años, 1 mes
Puntos: 0
Respuesta: Auto vaciar textarea al hacer clic dentro...

no hace falta pasarle el id a la funcion, basta con que le pases this:

Código javascript:
Ver original
  1. function textArea_focus (textarea){
  2.     if (textarea.value == textoInicial){
  3.         textarea.value = "";
  4.     }
  5. }
  6.  
  7. onFocus="textArea_focus (this);"