add and remove required attribute jquery code example Example: remove required attribute jquery $('#edit-submitted-first-name').removeAttr('required');