jQuery validate - how do I ignore letter case?

后端 未结 5 2169
无人共我
无人共我 2021-02-20 16:08

Probably a goofy question, but I can\'t seem to find anything in google land. I simply need one of my methods to ignore the case of the entered field. I am doing a city name mat

5条回答
  •  北海茫月
    2021-02-20 16:21

    jQuery.validator.addMethod("atlanta", function(value) {
        return value.toLowerCase() == "atlanta"; 
    }, '**Recipient must reside in Chicago City Limits**');
    

提交回复
热议问题