Código HTML:
<script language="javascript" type="text/javascript"> function d1(selectTag){ if(selectTag.value == 'OPCION'){ document.getElementById('prg1').disabled = false; }else{ subtotal = document.getElementById('pagar').value; total= (subtotal)*(2) / 100; document.getElementById('prg1').disabled = true; document.getElementById('prg1').value= total; } } </script>