change input to required jquery

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

Also in JavaScript: