how to add required tag in html through jquery code example Example: jquery add required $("input").prop('required',true);