SyntaxFix
Write A Post
Hire A Developer
Questions
The sizzle selector engine (what powers JQuery) is perfectly geared up for this:
var elements = $('input[type=text]');
Or
var elements = $('input:text');