Tema: if textarea
Ver Mensaje Individual
  #3 (permalink)  
Antiguo 23/10/2009, 12:25
Avatar de Adler
Adler
Colaborador
 
Fecha de Ingreso: diciembre-2006
Mensajes: 4.671
Antigüedad: 18 años, 2 meses
Puntos: 126
Respuesta: if textarea

Hola

Prueba así

Código javascript:
Ver original
  1. function funcion (sel) {
  2. if (sel == "Tramite judicia") {
  3.         document.getElementById('observaciones').innerText = "Complete los autos aqui";  
  4. // para FF sería
  5. // document.getElementById('observaciones').ContentText = "Complete los autos aqui";  
  6.    
  7. }
  8.         }
  9.  
  10.  
  11. <select onchange="funcion(this.options[this.selectedIndex].value);">

Suerte
__________________
Los formularios se envían/validan con un botón Submit
<input type="submit" value="Enviar" style="background-color:#0B5795; font:bold 10px verdana; color:#FFF;" />