disabled all a (href) except id = CancelAuditButton and RefreshButton in one line of code instead of two seperate lines of code,

disabled all a (href) except id = CancelAuditButton and RefreshButton in one line of code instead of two seperate lines of code,

I have a jsp code list below.
I want to disabled all a (href) except id = CancelAuditButton and RefreshButton
in one line of code instead of two seperate lines of code, thanks in advance. 
 
$("form a[id!='CancelAuditButton']").attr("disabled","disabled");
$('#RefreshButton').attr('disabled', false);
 
 
<div id="buttonDiv" align="center" style='z-index: 10000;'>
 <table border="0" align="center" cellspacing="0" cellpadding="0">
  <tr id="buttonSection">
      <td class="noPadding">
    <a class="button2" id="FindTrailerButton" href="javascript:findTrailer();"><span><spring:message
     code="buttons.findTrailer" /></span></a>   
   </td>
   <td class="noPadding">
    <a class="button2" id="FindTrailerToLoadButton" href="javascript:findTrailerToLoad();"><span><spring:message
     code="buttons.findTrailerToLoad" /></span></a>   
   </td>
   <td class="noPadding">
    <a class="button2" id="FindTrailerToPullButton" href="javascript:findTrailerToPull();"><span><spring:message
      code="buttons.findTrailerToPull" /></span></a>   
   </td>
   <td class="noPadding">
    <a class="button2" id="RefreshButton" href="javascript:refreshPage();"><span><spring:message
     code="buttons.refresh" /></span></a>   
   </td>
   <td class="noPadding">
    <a class="button2" id="CreateAuditButton" href="javascript:setAuditMode();"><span><spring:message
     code="buttons.createAuditJob" /></span></a>
   </td>
   <td class="noPadding">
    <a class="button2" id="CancelAuditButton" href="javascript:setAuditMode();"style="display: none;"><span><spring:message
     code="buttons.cancelAuditJob" /></span></a>
   </td>
   <td class="noPadding">
    <a class="button2" id="viewOpenLocationButton" href="javascript:viewOpenLocation();"><span><spring:message
     code="buttons.viewOpenLocation" /></span></a>    </td>
  </tr>
 </table>
</div>