call the input element through the value instead of id or name of the element in javascript method
<p>i want to disable the textarea onclick of value=1 and enable it back by clicking of radio button value=0. however  i have a condition that i have to use the same name and id for both the radio buttons.i have the existing code something  like this ..is there is any possibilty that i can call the radio button through their values in js method.</p>

<p>HTML:</p>

<pre><code>&lt;input type="radio" name="disabilityflag" id="disabilityflag" value="0"/&gt;    
&lt;span&gt;Yes&lt;/span&gt;            

&lt;input type="radio" name="disabilityflag" id="disabilityflag"  value="1"/&gt;
&lt;span&gt;No&lt;/span&gt;

&lt;textarea type="text" name="disabilityspecification" id="disabilityspecification"&gt;     
&lt;/textarea&gt;
</code></pre>

<p>Javascript:</p>

<pre><code>$('#disabilityflag').click(function(){
    checkeddisabilityclick();
});

function checkeddisabilityclick(){
    $('#disabilityspecification').attr("disabled",true);
    $('#disabilityspecification').addClass('disabled');
}

$('#disabilityflag').click(function(){
    $('#disabilityspecification').removeAttr("disabled"); 
    $('#disabilityspecification').removeClass('disabled');
});

if($('#disabilityflag').attr('checked')) {
    checkeddisabilityclick();
}
</code></pre>
