required attributes not working when added bu jquery code example Example: jquery add required $("input").prop('required',true);