限制用戶僅輸入數值的標準解決方案是使用 <input> 類型號的元素.它具有拒絕非數值的內置驗證。 ... <input type="text" id="salary" name="salary" pattern="[0-9]+"> ...
確定! 回上一頁