victorjonsson / jQuery-Form-Validator

[DISCONTINUED] jQuery plugin that makes it easy to validate user input while keeping your HTML markup clean from javascript code.
972 stars 476 forks source link

insertLeft only if input is not empty #735

Open betsim opened 5 years ago

betsim commented 5 years ago

I add "http://" on an input "URL" with insertLeft. Works fine if a URL is provided, but gives an error, if the field is emtpy, so the input only contains "http://". Is there a way to only insertLeft the input "URL" when it's not empty?