checkbox to disable/enable input
<p>I am using js to , onclick of a checkbox, it enables or disables text input.</p>

<p>It works, until I put it into a live form with google jquery api.</p>

<p>Weird but.. must be a conflict somewhere.</p>

<p>The form element is: ( code isnt adding to this post properly )</p>

<pre><code>&lt;input type="checkbox" name="others" onclick="enable_text(this.checked)" class="medium" /&gt;&lt;/div&gt;
</code></pre>

<p>Name on credit card if different from above</p>

<p>The js is:</p>

<pre>
function enable_text(status)
{
status=!status;
document.form1.other_name.disabled = status;
}
</pre>

<p>What am I doing wrong, I have used body onload handler.</p>

<pre><code>&lt;body onload=enable_text(false);&gt;
</code></pre>

<p>JS FIDDLE : <a href="http://www.jsfiddle.net/ozzy/H8VPY/4/" rel="nofollow">http://www.jsfiddle.net/ozzy/H8VPY/4/</a></p>
