change required atribute of input jquery code example Example: change input to required jquery $('#input').prop('required',true);