jquery set required for all input text code example Example: jquery add required $("input").prop('required',true);