Why don't you use a class for these specific text fields and use the class selector instead?
But still, if you need a solution here.
$('input[id^-"txt"]').filter(function() { return this.id.indexOf('OT') == -1; });
You can make your mark like this and make your code simple.
Mark
<input type="text" id="txtMo1"> <input type="text" class="OT" id="txtOTMo1"> <input type="text" id="txtTu1"> <input type="text" class="OT"id="txtOTTu1">
Js
$('input.OT').doYourStuff();
source share