aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/htmlselectelement/setcustomvalidity
diff options
context:
space:
mode:
authorMasahiro FUJIMOTO <mfujimot@gmail.com>2021-10-28 02:00:01 +0900
committerMasahiro FUJIMOTO <mfujimot@gmail.com>2021-11-04 21:36:13 +0900
commited4edb19c89e81e9f6e68f6820b166d106519be6 (patch)
treeaaa2ad0f16fad2a547ec5011d5c3e40180555b96 /files/ja/web/api/htmlselectelement/setcustomvalidity
parent485a48198a98d7213af29b946d473c9c3329a6b1 (diff)
downloadtranslated-content-ed4edb19c89e81e9f6e68f6820b166d106519be6.tar.gz
translated-content-ed4edb19c89e81e9f6e68f6820b166d106519be6.tar.bz2
translated-content-ed4edb19c89e81e9f6e68f6820b166d106519be6.zip
Web/API/HTMLSelectElement 以下の文書を更新
- 2021/10/27 時点の英語版に同期 - add, checkValidity, disabled, form, labels, namedItem, remove, selectedIndex, selectedOptions, setCustomValidaty, type については新規翻訳
Diffstat (limited to 'files/ja/web/api/htmlselectelement/setcustomvalidity')
-rw-r--r--files/ja/web/api/htmlselectelement/setcustomvalidity/index.md38
1 files changed, 38 insertions, 0 deletions
diff --git a/files/ja/web/api/htmlselectelement/setcustomvalidity/index.md b/files/ja/web/api/htmlselectelement/setcustomvalidity/index.md
new file mode 100644
index 0000000000..52ea4728bd
--- /dev/null
+++ b/files/ja/web/api/htmlselectelement/setcustomvalidity/index.md
@@ -0,0 +1,38 @@
+---
+title: HTMLSelectElement.setCustomValidity()
+slug: Web/API/HTMLSelectElement/setCustomValidity
+tags:
+ - API
+ - Constrain Validation API
+ - HTML DOM
+ - HTMLSelectElement
+ - メソッド
+ - リファレンス
+browser-compat: api.HTMLSelectElement.setCustomValidity
+translation_of: Web/API/HTMLSelectElement/setCustomValidity
+---
+{{ APIRef("HTML DOM") }}
+
+**`HTMLSelectElement.setCustomValidity()`** メソッドは、選択要素のカスタム検証メッセージを指定されたメッセージに設定します。要素にカスタム検証エラーが*ない*ことを示す場合は、空の文字列を使用します。
+
+## 構文
+
+```js
+selectElt.setCustomValidity(string);
+```
+
+### 引数
+
+- `string` で、エラーメッセージを含む {{domxref("DOMString")}} です。
+
+## 仕様書
+
+{{Specifications}}
+
+## ブラウザーの互換性
+
+{{Compat}}
+
+## 関連情報
+
+- [フォームの検証](/ja/docs/Web/Guide/HTML/Constraint_validation)