質問編集履歴

1

使用しているプラグインのURL、HTMLを追記しました。

2017/05/08 03:05

投稿

krat
krat

スコア18

test CHANGED
File without changes
test CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
 
12
12
 
13
- 生年月日の入力欄ではDatepikerを使用しているのですが、
13
+ 生年月日の入力欄では[pickadate.js](http://amsul.ca/pickadate.js/)を使用しているのですが、
14
14
 
15
15
  入力の際、一度入力をキャンセルし空欄になったフォームのプレースホルダが
16
16
 
@@ -40,7 +40,29 @@
40
40
 
41
41
  ###該当のソースコード
42
42
 
43
- ```ここに言語を入力
43
+ ```html
44
+
45
+ <div class="mdl-textfield mdl-js-textfield
46
+
47
+ string optional customer_born_on mdl-textfield--floating-label mdl-cell mdl-cell--12-col">
48
+
49
+ <label class="string optional mdl-textfield__label" for="customer_born_on">
50
+
51
+ 生年月日
52
+
53
+ </label>
54
+
55
+ <input data-toggle="datepicker" class="string optional mdl-textfield__input"
56
+
57
+ type="text" name="customer[born_on]" id="customer_born_on" />
58
+
59
+ </div>
60
+
61
+ ```
62
+
63
+
64
+
65
+ ```js
44
66
 
45
67
  var input_pickdate = $('[data-toggle="datepicker"]');
46
68