JQuery URL Validator

Posted by Vincent on Stack Overflow See other posts from Stack Overflow or by Vincent
Published on 2010-04-02T19:50:29Z Indexed on 2010/04/02 19:53 UTC
Read the original article Hit count: 158

Filed under:
|
|

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

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about url