Ver Mensaje Individual
  #13 (permalink)  
Antiguo 08/02/2011, 10:09
jordi45
 
Fecha de Ingreso: octubre-2008
Mensajes: 168
Antigüedad: 15 años, 6 meses
Puntos: 2
Respuesta: Jquery id dinámicos

<script language="javascript">
function recargar(){
$('#ident').click( function() {
var $id_ident = $(this); //
$.post("data.php", { name: $id_ident.val() }, function(data){
$("#recargado").html(data);
});
}}
</script>

esto va dentro de un while


<form name="form">
<input name="name" type="text" id ="ident<?php echo $row_coment['id']; ?>" value=" <?php echo $row_coment['id']; ?>">
<input type="button" value="recargar" onClick="recargar();">
</form>



<div id="recargado">Mi texto sin recargar</div><strong>