Ver Mensaje Individual
  #2 (permalink)  
Antiguo 11/08/2016, 10:17
alvaro_trewhela
Invitado
 
Mensajes: n/a
Puntos:
Respuesta: Habilitar y Deshabilitar radiobutton

Prueba con lo siguiente, es un ejemplo tu acomodalo para tu necesidad:

Código HTML:
Ver original
  1.     <head>
  2.         <script type="text/javascript">
  3.         function habilita(param){
  4.         var el = document.getElementById("asd");
  5.         el.setAttribute("disabled", "");
  6.             if(param){
  7.             el.removeAttribute("disabled");
  8.             }
  9.         }
  10.         </script>
  11.     </head>
  12.     <body>
  13.         <input type="text" id="asd" /><br/>
  14.         <input type="button" value="habilitar" onclick="habilita(true);" /> - <input type="button" value="deshabilitar" onclick="habilita(false);" />  
  15.     </body>
  16. </html>

Lo importante es que se entienda la idea, dudas me dices.

Última edición por alvaro_trewhela; 11/08/2016 a las 11:12