Código HTML:
Ver original<input name="<?php echo 'fecha'.$cont;?>" id="
<?php echo 'fecha'.$cont;?>" value="" onchange="echale_un_ojo(this)">
<input name="<?php echo 'fecha'.$cont;?>" id="
<?php echo 'fecha'.$cont;?>" value="" onchange="echale_un_ojo(this)">
<input name="<?php echo 'fecha'.$cont;?>" id="
<?php echo 'fecha'.$cont;?>" value="" onchange="echale_un_ojo(this)">
Código Javascript
:
Ver originalfunction echale_un_ojo(obj){
fx=obj.value;
//todo el blabla correspondiente y lo importante
if(ahax.responseText=='ojo'){
alert('ojo');
obj.value='';//¿?
}
}
Usas la variable $cont para dar un nombre distinto a cada input luego pasas el objeto (this) a la funcion javascript....
Quim