I want to create a custom validation rule, which uses some different methods to check the input. One of them, is required rule.
But the code doesn't work. It ignores empty inputs and says they're valid.
The code:
$("#test-form").validate({
    rules: {
        test: {
            required: true
        }
    }
});
Live Example: http://jsfiddle.net/u5now2e5/
What's wrong? Note that, I don't want to use required css class. Because it depends on some other fields.
 
    