Update Validator.php

just the javascript function in comments is wrong.
Must use val() with jquery, or use just plain javascript with .value.
It's also worng in docs.