Select jquery input <p>It's a quick question for you,</p> <p>I need to select Jquery element by type AND by name.</p> <p>I know that we can do something like:</p> <pre><code>$('.form-control input[type=text]').... </code></pre> <p>but I need to select by name too..</p> <p>do you have another way to do that unless using:</p> <pre><code>$('.form-control input[type=text]').each(function (){ if($(this).attr('name') == 'search'){ // this is my selector } } </code></pre> <p>thank you</p>