質問編集履歴

3

クラス名修正

2018/06/23 06:44

投稿

castail
castail

スコア117

test CHANGED
File without changes
test CHANGED
@@ -26,9 +26,9 @@
26
26
 
27
27
 
28
28
 
29
- <div class="disable"></div>
29
+ <div class="disabled"></div>
30
30
 
31
- <div class="able"></div>
31
+ <div class="abled"></div>
32
32
 
33
33
  ```
34
34
 

2

html追記

2018/06/23 06:44

投稿

castail
castail

スコア117

test CHANGED
File without changes
test CHANGED
@@ -13,6 +13,24 @@
13
13
  以下の処理を試したのですが、「#Password」の条件判別のみしか有効にならない状態です。
14
14
 
15
15
  ご教授の程よろしくお願いいたします。
16
+
17
+
18
+
19
+ ```lang-html
20
+
21
+
22
+
23
+ <input type="text" name="UserId" value="" id="UserId">
24
+
25
+ <input type="password" name="Password" value="" id="Password">
26
+
27
+
28
+
29
+ <div class="disable"></div>
30
+
31
+ <div class="able"></div>
32
+
33
+ ```
16
34
 
17
35
 
18
36
 

1

半角対象

2018/06/23 02:21

投稿

castail
castail

スコア117

test CHANGED
File without changes
test CHANGED
@@ -3,6 +3,10 @@
3
3
 
4
4
 
5
5
  具体的には「#UserId」「#Password」というinputタグがあり、「#UserId」は1文字未満もしくは「#Password」7文字未満の時に「.abled」を非表示、「.disabled」を表示、どちらの入力文字数も満たす場合、「.abled」を表示、「.disabled」を非表示に切り替えたいです。
6
+
7
+
8
+
9
+ 可能であれば、どちらも半角を対象にし、全角入力時は文字数を満たしても対象外としたいです。
6
10
 
7
11
 
8
12