To find out elements form the web page whose a particular attribute contains certain characters,we can use
Attribute contain selector .
<input id="NameTxtFirst" type="text" />
<input id="NametxtLast" type="text" />
<input id="FirstName" type="text" />
<input id="btnTest" type="button" value="Button" />
<script>
$(function () {
$("input[id*='txt']").css("border", "1px solid green");
});
</script>