Les agradezco la ayuda que me puedadn dar....
Código:
function imagen(id_Img){ //recive id de imagen
idImagen=id_Img;
document.getElementById("txtimagen").value= idImagen;
}
function celda(id_td){ //recive id de celda
idCelda=id_td;
document.getElementById("txtcelda").value=idCelda;
}
Código HTML:
<td id="celda1" onclick="celda(this.id)"><img src="imagenes/blanco.jpg" id ="img_c3"/></td> <td><img src="imagenes/0.JPG" id="imagen_1" onclick="imagen(this.id)"/></td>


