Quantcast
Channel: validator Discussions Rss Feed
Viewing all articles
Browse latest Browse all 20

New Post: Help adding custom validators to the jquery.validator-0.3.4.min.js

$
0
0

My fault, I made customFn to be consistent with other javascript events like onclick where "this" refers to the input element the attribute is defined on (so indeed "this.value" should be the value from the asp textbox) and made the function to return true if valid or false if not. But for some reason I did the opposite for the personally defined validator collection and instead made "this" the input value (in javascript you can change what "this" refers to when calling a function) and made false the value to return if the value is valid. This has been tidied up and should now work with your sample code as it now stands:

http://validator.codeplex.com/releases/view/62692


Viewing all articles
Browse latest Browse all 20

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>