<!DOCTYPE html> <html> <head> <title></title> <style type="text/css"> </style> <script> function Go(Obj) { document.getElementsByName(Obj.name)[1].disabled=Obj.checked } </script> </head> <body> <input name='test' type="checkbox" onclick="Go(this)" /> <input name='test' type="button" value="Go" /> </body> </html>
<input type="checkbox" onchange="nextSibling.disabled=checked"><input type="button" value="go">