<script type="text/javascript">
function checktxtbox()
{
if (document.getElementById("chkWarranty").checked == true)
{
document.getElementById("strOriginalRA").disabled = false;
}
else
{
document.getElementById("strOriginalRA").disabled = true;
}
}
</script>
Another approach based on comment by OP:
<script type='text/javascript'>
$('#chkWarranty').click(function(){
if($(this).attr('checked') == true){
$('#strOriginalRA').attr("disabled","disabled");
} else {
$('#strOriginalRA').removeAttr('disabled');
}
});
</script>
Call it like:
<input type="checkbox" id="chkWarranty" onclick="checktxtbox()"></input>
Regards.. :laugh: