📌  相关文章
📜  如何使用类更改 javascript 中的输入值 - Javascript 代码示例

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

代码示例1
// Find the input element with a class of "bar" that is a direct child of a form with a name attribute of "foo"
document.querySelector("form[name='foo'] > input.bar").value = "hehe works"