Ver Mensaje Individual
  #1 (permalink)  
Antiguo 18/02/2005, 12:43
yokoshima
 
Fecha de Ingreso: febrero-2005
Ubicación: chile, Santiasko
Mensajes: 728
Antigüedad: 19 años, 3 meses
Puntos: 1
Radio que Habiliti oh Deshabiliti otro Radio

por ejemplo tengo una opcion que es Trabaja?
sale un radio Si y otro No si dice que Si se habilitan los Radios; Fulltime, Partime, Completo, Estudiante y Desempleado....

todo Ok con los txt, me sale bien pero en el de los Radios como tienen el mismo Nombre...nose que pasa...aqui les dejo mi codigo..


este es el Script de JAva
Código:
  <script language="JavaScript"> 
   function habilitainfo(){ 
    document.form1.EMPRESA_ACTUAL.disabled = false; 
	document.form1.regimen.disabled = false; 

	 } 

   function deshabilitainfo(){ 
    document.form1.EMPRESA_ACTUAL.disabled = true; 
    document.form1.EMPRESA_ACTUAL.value = ""; 
	
	document.form1.regimen.disabled = true; 
    document.form1.regimen.value = ""; 
	
   } 
</script>

este es del formulario....
Código:
  <table width="100%" border="0"  align="center" cellspacing="0" cellpadding="0">
    <tr> 
	 <tr> 
	<td colspan="4" class="ttitulo style11"><strong>Informaci&oacute;n Actual</strong></td>
    <tr> 
      <td width="50%">Trabaja actualmente (*)</td>
      <td width="50%">R&eacute;gimen (*)</td>
    </tr>
    <tr> 
      <td><input type="radio" name="trabajo" value="SI" onClick="habilitainfo()">
        Si 
        <input type="radio" name="trabajo" value="NO" onClick="deshabilitainfo()">
        No</td>
      <td><input type="radio" name="regimen" value="FULLTIME" disabled>
        Full Time 
        <input type="radio" name="regimen" value="PARTTIME" disabled>
        Part Time 
        <input type="radio" name="regimen" value="INDEPENDIENTE" disabled>
        Independiente <br>
        <input type="radio" name="regimen" value="ESTUDIANTE" disabled>
        Estudiante 
        <input type="radio" name="regimen" value="DESEMPLEADO" disabled>
        Desempleado</td>
    </tr>
    <tr> 
      <td>Empresa</td>
      <td>&nbsp;</td>
    </tr>
    <tr> 
      <td><input type="text" name="EMPRESA_ACTUAL" disabled></td>
      <td>&nbsp;</td>
    </tr>
  </table>
como repito solo me funciona en los txt, yo quiero que me funcione tb en esos radios...
__________________
Una Vez Muerto el Perro.............Se acaba la Rabia :risa: