title: Toggle disable with if statement
body: <p>So I am having trouble with this disable stuff. I am trying to toddle a disable with an IF statement and radio buttons. I have tried with out an if with no success. Please help if you can! My code is as follows.</p>
  
  <pre><code>&lt;html&gt;
  &lt;h1&gt;Convert Temperature&lt;/h1&gt;
  &lt;body&gt;
  &lt;input id="example" type="radio" onClick="toggle('example', 'disableMe')" name="Radio" value="Radio"&gt; 
  From Fahrenheit to Celsius &lt;/br&gt;
  &lt;input id="example" type="radio" onClick="toggle('example', 'disableMe')" name="Radio" value="Radio"&gt; From Celsius to Fahrenheit
  &lt;/br&gt;
  &lt;/br&gt;
  &lt;/br&gt;
  &lt;form name="converter"&gt;
  Celsius: &lt;input id="disableMe" type="text" name="celsius" onChange="CelsiusConverter()"&gt;&lt;br /&gt;
  Fahrenheit: &lt;input id="disableMe" type="text" name="fahrenheit" onChange="FahrenheitConverter()"&gt;&lt;br /&gt;
  &lt;input type="button" value="Convert!" /&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;script language="JavaScript"&gt;
  &lt;!--
  function CelsiusConverter(){
  document.converter.fahrenheit.value = (document.converter.celsius.value * 9 / 5) + 32
  }
  function FahrenheitConverter(){
  document.converter.celsius.value = (document.converter.fahrenheit.value - 32) * 5 / 9
  }
  //--&gt;
  function toggle(radioID, toggleID) { 
  var radio = document.getElementById(radioID); 
  var toggle = document.getElementById(toggleID); 
  updateToggle = radio.checked ? toggle.disabled=true : toggle.disabled=false;
  
  if (radioID = checked)
  {
  toggle.disable=true;
  }
  }
  &lt;/script&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I know that the IF i have in there doesn't look right and something need to be fix but i don't know how! </p>