Ver Mensaje Individual
  #2 (permalink)  
Antiguo 08/02/2012, 13:37
Avatar de goteen_mx
goteen_mx
 
Fecha de Ingreso: abril-2005
Ubicación: D.F.
Mensajes: 403
Antigüedad: 19 años, 1 mes
Puntos: 37
Respuesta: Como obtener el valor de una etiqueta con ID dinamico

Podría ser así:

Código PHP:
Ver original
  1. echo '<span class="file" id="'.$row_rsRegistro['idRamaTema'].'" onclick="f_funcion(this);">'.$Valor.'</span>'

Código Javascript:
Ver original
  1. function f_funcion(obj){
  2.     alert(obj.innerHTML);
  3. }

Saludos.
__________________
Born to be free.