質問編集履歴
1
不要なソースコードの項目の削除
title
CHANGED
File without changes
|
body
CHANGED
@@ -46,22 +46,4 @@
|
|
46
46
|
});
|
47
47
|
</script>
|
48
48
|
</html>
|
49
|
-
```
|
49
|
+
```
|
50
|
-
|
51
|
-
<script>
|
52
|
-
$('input[type=text]:first').focus();
|
53
|
-
|
54
|
-
$('input[name^="card_number"]').keyup(function() {
|
55
|
-
|
56
|
-
var n = $("input").length;
|
57
|
-
|
58
|
-
if ($(this).val().length >= $(this).attr('maxlength')) {
|
59
|
-
var nextIndex = $('input').index(this) + 1;
|
60
|
-
if(nextIndex < n) {
|
61
|
-
$('input')[nextIndex].focus();
|
62
|
-
}
|
63
|
-
}
|
64
|
-
});
|
65
|
-
</script>
|
66
|
-
|
67
|
-
</html>
|