1 $('#edit').click(function(){ // click to
2 $('.inputDisabled').attr('disabled',false); // removing disabled in this class
3 });
1$('.class').prop("disabled", true);
2$('#id').prop("disabled", true);
3
4// As function
5const disable = (id) => $(`#${id}`).prop("disabled", true);
1//for a class
2$('.inputDisabled').prop("disabled", false);
3//for a ID
4$('#inputDisabled').prop("disabled", false);
1$("#edit").click(function(event){
2 event.preventDefault();
3 $('.inputDisabled').prop("disabled", false); // Element(s) are now enabled.
4});