質問編集履歴
3
リンクの追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -42,5 +42,4 @@
|
|
42
42
|
7 }
|
43
43
|
```
|
44
44
|
|
45
|
-
###AjaxZip3ライブラリ
|
46
|
-
[https://github.com/ajaxzip3/ajaxzip3.github.io
|
45
|
+
[AjaxZip3のライブラリ](https://github.com/ajaxzip3/ajaxzip3.github.io)
|
2
リンク追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -43,4 +43,4 @@
|
|
43
43
|
```
|
44
44
|
|
45
45
|
###AjaxZip3ライブラリ
|
46
|
-
https://github.com/ajaxzip3/ajaxzip3.github.io
|
46
|
+
[https://github.com/ajaxzip3/ajaxzip3.github.io]
|
1
コードをコードブロックで表示、AjaxZip3のライブラリをの記載ページを追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -15,6 +15,7 @@
|
|
15
15
|
・townAddressId⇒町村名を入れるテキストボックスのid,name名(ex浜松町)
|
16
16
|
|
17
17
|
|
18
|
+
```ここに言語を入力
|
18
19
|
1 function searchAddressBtn_Click(zipCodeId, fullAddressId, prefId, cityAddressId, townAddressId) {
|
19
20
|
2 var postalcode = document.getElementById(zipCodeId.id).value;
|
20
21
|
3 if (postalcode) {
|
@@ -24,15 +25,22 @@
|
|
24
25
|
7 } else {
|
25
26
|
8 alert("郵便番号が入力されていません");
|
26
27
|
9 }
|
28
|
+
```
|
27
29
|
|
30
|
+
|
28
31
|
###試したこと
|
29
32
|
when・doneを使った処理を試したのですが、5行目が実行されずに3行目が実行された結果が得られた。
|
30
33
|
試したコード
|
31
34
|
|
35
|
+
```ここに言語を入力
|
32
36
|
1 if (postalcode) {
|
33
37
|
2 $.when(
|
34
38
|
3 AjaxZip3.zip2addr(zipCodeId.name, '', prefId.name, cityAddressId.name, townAddressId.name, townAddressId.name)
|
35
39
|
4 ).done(
|
36
40
|
5 AjaxZip3.zip2addr(zipCodeId.name, '', fullAddressId,fullAddressId);
|
37
41
|
6 );
|
38
|
-
7 }
|
42
|
+
7 }
|
43
|
+
```
|
44
|
+
|
45
|
+
###AjaxZip3ライブラリ
|
46
|
+
https://github.com/ajaxzip3/ajaxzip3.github.io
|