// https://stackoverflow.com/questions/12741517/how-to-make-url-validation-without-http-or-add-it-after-validation-passed/44848476#44848476 let old_url = jQuery.validator.methods.url; jQuery.validator.addMethod( 'url', function(value, element) { let url = old_url.bind(this); return url(value, element) || url('http://' + value, element); }, 'Please enter a valid URL' );