Al ocurrir el evento onchange del segundo input no me habilita el primer input, aunque si le doy al botón si que lo habitilita.
Código:
<html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script> <script> $(document).ready(function(){ $("button").click(function () { $(this).next().removeAttr("disabled") .focus() .val("editable"); }); }); function pruebra(){ $('#cambio').removeAttr("disabled"); } </script> </head> <body> <button>Habilitar</button> <input type="text" disabled="disabled" id="cambio" value="no se puede editar" /> <input type="text" id="prueba1" onchange="prueba()" /> <input type="text" id="prueba2" /> </body></html>