<script> window.onload = Abc; function Abc(){ var val = document.getElementById('abc'); val.disabled = true; } </script> <form> <input type="radio" id="abc">1</input> </form>