1
我一直希望有人能指出我正確的方向。我正在尋找在我的表單中使用this plugin以及jquery.validation插件,但是從我所看到的我需要使用選擇標記才能使creditcard2正常工作。如何使用jquery.validation creditcard2驗證信用卡?
我現在有是這樣的:
<p class="ccType">
<label for="card_type" class="error">You must select a credit card from one of the following.</label>
<br>
<input type="radio" value="1000" id="card_type_1000" name="card_type" style="outline:none; border:none;" />
<img src="../visa.png" alt="Visa" width="50" height="30" align="top" />
<input type="radio" value="1002" id="card_type_1002" name="card_type" style="outline:none; border:none;" />
<img src="../mastercard.png" alt="Mastercard" width="50" height="30" align="top" />
<input type="radio" value="1006" id="card_type_1006" name="card_type" style="outline:none; border:none;" />
<img src="../discover.png" alt="Discover" width="50" height="30" align="top" />
<input type="radio" value="1004" id="card_type_1004" name="card_type" style="outline:none; border:none;" />
<img src="../amex.png" alt="American Express" width="50" height="30" align="top" />
</p>
值= 1000是 「簽證」
值= 1002是 「萬事達卡」
值= 1006是 「發現」
值= 1004是「美國運通」
插件站點提到創建查找哈希值。我不知道如何創建一個。此外,網站上的文檔僅顯示使用<select></select>
的示例。我正在使用輸入。
我如何能得到這個與設置,我現在有工作。
有什麼建議嗎?
是的......讓我試試這個並回復你。謝謝! – TikaL13 2010-06-16 21:08:44
所以...它的工作? – MvanGeest 2010-06-16 21:34:59
是的,先生!...謝謝! – TikaL13 2010-06-16 21:35:21