disable a hidden control in sharepoint using jquery
<p>I have hidden a sharepoint yes/no filed using jquery. When i am logged in as another user i want to directly disable the hidden field. Somehow unless i show it first , i am not able to disable it. </p>

<p>This works : <strong>this field is hidden with jquery</strong></p>

<pre><code>$("nobr:contains('Extend This Contract ?')").parent('h3').parent('td').parent('tr').show(); $("input[Title='Extend This Contract ?']").attr("disabled", "disabled");
</code></pre>

<p>This does not</p>

<pre><code>$("input[Title='Extend This Contract ?']").attr("disabled", "disabled");
</code></pre>

<p>Any workarounds for this ? Thanks in advance.</p>