[jQuery] get elements by tag name and attribute?

[jQuery] get elements by tag name and attribute?


Hi, sorry for the novice question, but can anyone tell me how to do
this using plain old javascript - I don't need the entire jQuery
library just for this simple function:
$('input[type=text]').addClass("textInput");
... one of those problems of being too reliant on jQuery without
knowing enough basic js!
Thanks in advance,
James