validate plugin regards localhost as not valid
Hi
I'm using this plug in like this:
<input type="textfield" class="url" id="url" name="url"> and
if ($("#gadget_adder").validate().element("#url") ) {
...do something
}
But it regards a url like http://localhost/anyfile.php as invalid.
Can this behaviour be turned off? i.e. could the regexp pass http://localhost ?
This seems to me like something which would be useful in this plugin. I use localhost as I'm developing and while I can turn it off it would be one more thing to remember to turn it back on when we go live.
Anyway - the workaround is to use 127.0.0.1 in place of localhost - that validates.
Thanks
Justin