what is the difference between below two ways of disabling the element in java script
<p>I have to disable some elements in my Javas Script code , which one is better for disabling an element through Java Script :</p>

<pre><code> 1.   document.getElementById("eleId").disabled = true;

 2.   document.getElementById("eleId").disabled = "disabled";
</code></pre>

<p>Please anyone describe these functions and what is the difference between these  ?</p>
