New course! Every coder should learn Generative AI!
Try a free lesson0
How can i select dom element in js it not working here 😅
1 Answer
+ 2
Khaled Attia
Do this
window.onload = function () {
const input = document.querySelector(".ip");
console.log(input.value);
}