In the jquery
According to some condition I make one field as read only with below code
$("#name").attr("readonly", true);
it is working fine
but when i try to disable it by using below codes
$("#name").attr("readonly", false);
OR
$("#name").attr("disabled", false);
It is not getting disabled. How can achieve it