📜  checkValidity - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:37.310000             🧑  作者: Mango

代码示例1
var valid_part = document.getElementById("part");

if (valid_part.checkValidity()) {
  alert("Item Description contains no commas ");
}
else {
  alert("Item Description cannot contain a comma");
}