change input to required jquery
snippet in javascript

jquery add required

user8582

$("input").prop('required',true);

change input to required jquery

user6110

$('#input').prop('required',true);