Selecting within a set

Selecting within a set

I have more than one control of the same type, both containing 'xyz' in the middle of their IDs.  I want to select an element within that set having an ID that ends with '123':
 
  1. <input type="text" id="Autostuff_gtuyn_xyz_more_ardohn_123"><br />
  2. <input type="text" id="Autostuff_3yntu_xyz_more_hnardo_7">
 
 
I thought I had it with:
 
  1. var x = $("select[id*='xyz']").("[id$='123']").val();
 
 
but I get "Expected identifier...