title: Inline JavaScript enable/disable select and text box on click radio button
body: <p>I am trying inline script  to enable disable with radio button, but it is not working. How to do that?</p>
  
  <pre><code>&lt;form&gt;
  &lt;select id="mySelect"&gt;
    &lt;option&gt;Apple&lt;/option&gt;
    &lt;option&gt;Pear&lt;/option&gt;
    &lt;option&gt;Banana&lt;/option&gt;
    &lt;option&gt;Orange&lt;/option&gt;
  &lt;/select&gt;
  &lt;br&gt;&lt;br&gt;
  &lt;input type="radio" name="ph" onclick=" document.getElementById("mySelect").disabled=true;" value="Disable list"&gt;DISABLE
  &lt;input type="radio" name="ph" onclick="enable()" value="Enable list"&gt;ENABLE
  &lt;/form&gt;
  </code></pre>