I'm using jQuery Validation Plugin v1.14.0
I know that we can check the form's field like:
$( "#myform" ).validate({
rules: {
field: {
required: true,
url: true
}
}
});
Is there a way to check string variable by this plugin and get true
or false
something like:
var url = 'http://example.com'
var isValidUrl = url.checkUrl() //