Javascript function Id
<pre><code>&lt;label for="dessert"&gt;What is your favourite dessert?*&lt;/label&gt;
&lt;input type="text" id="dessert" onchange="checkForm()"&gt;&lt;br&gt;
&lt;div id="dessertmsg"&gt;  &lt;/div&gt;

&lt;input type="submit" value="Submit" id="subbutton" disabled&gt; 
</code></pre>

<p>I want to show the button. To show the button, I want my validation to be true which is :</p>

<pre class="lang-javascript prettyprint-override"><code>  function checkForm()

  {
  var dessert = document.getElementById("dessert").value;

  if(dessert == "cake"|| dessert == "cookie" || dessert == "icecream"){
</code></pre>

<p>When its true, i want the button to be enabled. I know i have to use disabled: False but how would i write the line of code for that? <code>document.getElementById(</code>what is the id for the disabled<code>)</code>??</p>
