HTMLOutputElement: setCustomValidity() method
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since August 2016.
Phương thức setCustomValidity() đặt thông báo hợp lệ tùy chỉnh cho phần tử.
Cú pháp
js
setCustomValidity(string)
Tham số
string-
Thông báo lỗi.
Thông số kỹ thuật
| Specification |
|---|
| HTML> # dom-cva-setcustomvalidity-dev> |