jQuery validate - how do I ignore letter case?

后端 未结 5 2084
无人共我
无人共我 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-20 16:17

    return value.toLowerCase() == "atlanta";
    or use
    return value.toLowerCase() == "Atlanta".toLowerCase();
    

提交回复
热议问题