I have this CSS: input::placeholder {font-size: 30px}
and I trying to change input placeholder CSS in JS
var inputPlaceholder = document.querySelector("input::placeholder");
inputPlaceholder.style.fontSize = "5px";
but console returns Uncaught TypeError: Cannot read property 'style' of null.
How to to change input placeholder CSS in the right way?