0
我可以向輸入的html添加元數據,以便jQuery驗證插件將其驗證爲信用卡號嗎?我如何指定所有信用卡類型都可以接受?在元素上使用元數據使其通過jQuery驗證插件驗證爲信用卡
(類似於包括類「數字」來驗證,只有數字輸入。)
我已經試過這(在黑暗中拍攝):
<input class="title" creditcardtypes="all" creditcard="true" name="cc-number" maxlength="16">