我試圖從HTML輸入中獲得價值,但我沒有成功。 我需要將其轉移到代碼後面aspx.cs從html輸入獲取值到字符串並傳輸到代碼
我想將輸入名稱(卡號)傳輸到字符串。
代碼:
<link href="Store/creditcardjs-v0.10.13.min.css" rel="stylesheet">
<div class="ccjs-card">
<label class="ccjs-number">
Card Number
<input name="card-number" class="ccjs-number" placeholder="•••• •••• •••• ••••">
</label>
<label class="ccjs-csc">
Security Code
<input name="csc" class="ccjs-csc" placeholder="•••">
</label>
<button type="button" class="ccjs-csc-help">?</button>
<label class="ccjs-name">
Name on Card
<input name="name" class="ccjs-name">
</label>
您是使用JQuery還是純JavaScript? –
所以提交表格 – epascarello
我使用javascript。請幫忙 –