I found a Jquery plugin from JQueryValidation.
I'm validating URLs which is entered in the Textbox on submit. Its working perfectly when i enter the hosted URL's. Https and http Like https://www.google.co.in and http://test.com/
Demo : Here
The problem is when i enter asp.net mvc local host urls its not allowing as a valid urls. Like http://localhost:65350/Test.htm
How do I allow local host urls also throgh jquery.validate.min.js?
Is there any custom methods can be added for Hosted urls and localhost urls? which will be validated at same time for a field.
addMethodmethod. Use the function from the plugin's URL method as your base code and modify it to suit your needs. So are you asking how to create a rule withaddMethod()or are you asking how to write the custom URL regex that includeslocalhost?how to write the custom URL regex that includes localhost.