I have the following code:
$('input[type="text"]').each(function(indx){
Currently, this allows access to inputs whose type is text, but what if I want access to inputs whose type="text" and type="password".
How would I set that up?
You could use the Multiple Selector, which is just a fancy name for comma-separated selectors (the same you would use in CSS):
$('input[type="text"],input[type="password"]').each(function(indx){