jquery make a form mandatory code example Example: jquery add required $("input").prop('required',true);