omg
omg

Reputation: 139912

How can I create a disabled effect on <input>,<select> and <img> tags with jQuery?

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

Answers (3)

TheVillageIdiot
TheVillageIdiot

Reputation: 40517

$("#ID_OF_THE_ELEMENT").attr("disabled","disabled");

Upvotes: 0

redsquare
redsquare

Reputation: 78677

$('#elementId').attr('disabled', 'disabled')

Upvotes: 2

peirix
peirix

Reputation: 37761

$("input").attr("disabled", true);

Upvotes: 0

Related Questions