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