Ver Mensaje Individual
  #5 (permalink)  
Antiguo 11/04/2012, 10:23
Avatar de gjx2
gjx2
 
Fecha de Ingreso: agosto-2008
Ubicación: R.D
Mensajes: 1.153
Antigüedad: 15 años, 9 meses
Puntos: 139
Respuesta: Mostrar un input al dar clic en una imagen

Pruebalo de este modo.

Código HTML:
Ver original
  1. function f_mostrar(){
  2. input = document.getElementById('p3');
  3. input.style.display = "block";
  4. }
  5.  
  6. <input type="text" name="p3[]" id="p3" value="Hola" size="3" style="display:none" />
  7.  
  8.  
  9. <img src="http://www.altracocina.com/wp-content/themes/this/images/logo.jpg" onclick="f_mostrar()" />