Reputation: 139912
How can I create a disabled effect on , and tags with jQuery to indicate to user that they aren't editable?
Upvotes: 0
Views: 3199
Reputation: 40517
$("#ID_OF_THE_ELEMENT").attr("disabled","disabled");
Reputation: 78677
$('#elementId').attr('disabled', 'disabled')
Upvotes: 2
Reputation: 37761
$("input").attr("disabled", true);