Select items with one class, but not second class

Select items with one class, but not second class

Hi,

  1. <input type="text" class="class1">
  2. <input type="text" class="class3">
  3. <input type="text" class="class2">
  4. <input type="text" class="class2 class1">
  5. <input type="text" class="class1 class3">
  6. <input type="text" class="class1">
Given the above, how would I select those that HAVE class1, but NOT class2, don't care about class3

So what I want are the items on lines 1,5 & 6

How could the below be modified to achieve what I want, or do I need something completely different?
  1. $("input:text.class1")
Cheers,
Mike