All,
I am trying to use JQuery's URL Validator plugin.
http://docs.jquery.com/Plugins/Validation/Methods/url
I have a text box that has a URL. I want to write a function which takes the textbox value, uses the jquery's validator plugin to validate urls and returns true or false.
Something like Ex:
function validateURL(textval)
{
// var valid = get jquery's validate plugin return value
if(valid)
{
return true;
}
return false;
}
I wanted this to be a reusable function..
Thanks