need some help with selectors

need some help with selectors

Hi,

I'm trying to find all a tags that have a href that ends with ('CREATE') or ('CREATE_AND_CREATE_ANOTHER')

This is my code I have

$jquery(document).ready(function () {
    setFocusIndirectly('P&APP_PAGE_ID._PAGE_FOCUS');
    $jquery("a[href$='(\'CREATE\')'], a[href$='(\'CREATE_AND_CREATE_ANOTHER\')\']").click(Function(){
      alert('test');
    });
  });


and the two a tags I'm searching for are coded as follows.
<a href="javascript:doSubmit('CREATE')">Create</a>
<a href="javascript:doSubmit('CREATE_AND_CREATE_ANOTHER')">Create and create another</a>


I think the problem lies with the fact that my href has single quotes in the string and I need to escape them. Am I escaping them correctly?