Reputation: 15
The checkbox is disabled readOnly. In that checkbox, I have tried to use the following code but it's not working.
$(".FlagClass").prop("disabled", true);
I need to disable true in the checkbox
Upvotes: 0
Views: 43
Reputation: 148
if the class is in an input type element:
$('.FlagClass').attr('readonly',false);
if you want to remove the attribute that you have
$(".FlagClass").removeAttr('readonly');
Or:
$('.FlagClass').removeAttr('disabled');
also
$('.FlagClass').attr('disabled', false);
Upvotes: 0
Reputation: 9
Try with attr instead
$(".FlagClass").attr("disabled", false);
Upvotes: 1
Reputation: 7199
Have you tried with disabled?
$(".FlagClass").prop("disabled", 'disabled');
or
$(".FlagClass").attr("disabled", true);
Upvotes: 0