Trying to find the value of the next input after an element

Trying to find the value of the next input after an element

How do I get the value of the next input after a b element containing 'Matching wallets'. I can't use the input's id as it depends on how many inputs there are

I've tried this but wallets is undefined

  1. var wallets=$('a.cart-item-name:contains("Matching Wallet")').parent().parent().parent().parent().parent().parent().nextAll('td center input').val();
HTML

  1. <td>
       <table cellspacing="0" cellpadding="4" border="0">
          <tbody>
              <tr>
                 <td>
                    <font>
                       <a>
                           <b class="cart-item-name">Matching Wallet</b>
                       </a>
                    </font>
                </td>
             </tr>
          </tbody>
       </table>
    </td>
    <td  width="0"></td>
    <td align="center">
    <td width="0"></td>
    <td>
        <center>
            <input id="Quantity2" type="text" maxlength="8" size="5" value="2" name="Quantity2">
        </center>
    </td>