Hi Pooja,
You can use following jquery to achieve your task.
$('.readonly').click(function(){
if ( $(this).find('input').is('[readonly]') ) {
$(this).find('input').removeAttr('readonly');
}
else{
$(this).find('input').attr('readonly', true);
}
});
Add readonly class name in your text box.
Thanks