how to put requirement input jquery code example Example: jquery add required $("input").prop('required',true);