Ver Mensaje Individual
  #2 (permalink)  
Antiguo 14/01/2015, 19:34
germangutierrez
 
Fecha de Ingreso: enero-2015
Mensajes: 43
Antigüedad: 9 años, 3 meses
Puntos: 3
Respuesta: seleccion de radio button

estas repitiendo los ids fp, fc y gestionar, la definicion de la funcion segun el navegador te va a levantar o el primer elemento con ese id o el ultimo.

primero, veriifica que cada elemento si necesita un id, este sea unico en el DOM
2, lo mas facil es modificar el el metodo fAgrega
Código HTML:
function fAgrega(value, el_target)
{


el_target.innerHTML = f.getDate() + "/" + f.getMonth() + 1 + "/" + f.getFullYear();
alert(value);

}
y en el html
Código PHP:
<div style="padding-left: 10px;"
         <
label class="colorG"></label
         <
fieldset class="campofieldsetM">
                <
legend>Administrador de Publicación de Cargos</legend>    
        <
form action="" method="post" enctype="multipart/form-data" target="_self" id="theForm" name="theForm">
        
        <
label >Lista de Vacantes</label>
        <
table width="1008"  cellpadding="0" border="1" bordercolordark="#CCCCCC" cellspacing="0" style="text-align:center">
            <
thead bgcolor="#999999">
                <
tr>
                <
th width="54">ITEM</th>
                <
th width="285">Gerencia</th>
                <
th width="227">Vacante</th>
                <
th width="81">Status</th>
                <
th width="159">Fecha de Publicación</th>
                <
th width="124">Fecha de Cierre</th>
                <
th width="76">Gestionar</th>
                </
tr>
            </
thead>
                        <
tbody>
                   <
tr>
                <
td width="54"><span title="ITEM"><label name="item" id="item" value="1">1</label></span></td>
                <
td width="285"><span title="Gerencia" style="font-size:13px">GERENCIA DE ADMINISTRACIÓN</span></td>
                <
td width="227"><span title="Cargo" style="font-size:13px">ANALISTA DE FACTURACIÓN</span></td>
                <
td width="81"><span title="Status"><label name="status" id="status" value="0"></label></span></td>
                <
td width="159"><span title="fp" id="fp1"></span></td>
                <
td width="124"><span title="fc" id="fc1"></span></td>
                <
td width="76" align="center"><span title="Gestionar"><input  name="gestionar" id="gestionar1" type="radio" value="1" onChange="fAgrega(this.value, document.getElementById('fp1'));" onClick="nv.disabled = false; pv.disabled = false"/></span></td>
                </
tr>
            </
tbody>
                    <
tbody>
                   <
tr>
                <
td width="54"><span title="ITEM"><label name="item" id="item" value="2">2</label></span></td>
                <
td width="285"><span title="Gerencia" style="font-size:13px">GERENCIA DE ADMINISTRACIÓN</span></td>
                <
td width="227"><span title="Cargo" style="font-size:13px">EJECUTIVA DE APS</span></td>
                <
td width="81"><span title="Status"><label name="status" id="status" value="0"></label></span></td>
                <
td width="159"><span title="fp" id="fp2"></span></td>
                <
td width="124"><span title="fc" id="fc2"></span></td>
                <
td width="76" align="center"><span title="Gestionar"><input  name="gestionar" id="gestionar2" type="radio" value="2" onChange="fAgrega(this.value,, document.getElementById('fp2'));" onClick="nv.disabled = false; pv.disabled = false"/></span></td>
                </
tr>
            </
tbody>
                </
table><br>

        
</
form>


</
fieldset>

</
div