I am trying to blur all the inputs on the page, to show error styling. I am trying to follow this blur documentation.
My attempt is to grab all the inputs and then apply blur...
document.querySelectorAll('input').blur();
But I simply get the error, blur is not a function. What is the correct approach?