Dinâmico Selecionar ID do Parágrafo usando JavaScript

<input type="text" value="1" id="thisIsAnId1" />
 <input type="text" value="2" id="thisIsAnId2" />
 <input type="text" value="3" id="thisIsAnId3" />
 <Script>
 $("[id*=thisIsAnId]").each(function() {
 this.style.color = "blue";
 });
 </Script>
Awful Angelfish