jquery go to required input form code example Example: jquery add required $("input").prop('required',true);