jQuery Validation Plugin - equalTo not working

后端 未结 1 1650
时光说笑
时光说笑 2020-12-04 03:33

I\'m trying to use the equalTo method with the jQuery Validation Plugin (http://jqueryvalidation.org/equalTo-method) but it\'s not working. Can anyone help me figure out wha

相关标签:
1条回答
  • 2020-12-04 04:01

    Try

    jQuery(function ($) {
    
        $("#ss-form").validate({
            rules: {
                entry_123: "required",
                "email-again": {
                    equalTo: "#entry_123"
                }
            }
        }); // end of function validate
    });
    

    Demo: Fiddle

    0 讨论(0)
提交回复
热议问题