how to disable a radio button in javascript code example Example: disabled radio button $(':radio:not(:checked)').attr('disabled', true);