0

jQuery has validation plug-in which could be attached to form or form element to validate it. I would like to validate url string using jQuery validation but do not find any method which could allow to validate strings instead of forms or form elements.

Tomas
  • 17,551
  • 43
  • 152
  • 257
  • What exactly do you want to validate on the URL? – Hallaghan Mar 29 '11 at 09:59
  • I want to validate URL string and other things like e-mail and etc. jQuery Validation plug-in is good for that but it allow to attach validation to form or element. I do not want to do that, I want to pass values as strings for validation and check is result is True or False. – Tomas Mar 29 '11 at 10:01
  • Well, if those values are passing in the queryString, that means they are part of the form you are posting. You could use jQuery Validation on your form and create custom rules. Check here for an example: http://stackoverflow.com/questions/241145/jquery-validate-plugin-how-to-create-a-simple-custom-rule – Hallaghan Mar 29 '11 at 10:04

0 Answers0