title: how to parse attribute onclick, which contains return function. javascript
body: <p>I have a link which return form with different ID's, and i need to get ID number from onclick attribute</p>
  
  <pre><code>&lt;a onclick="return package_order(14400287396);" href="javascript:;"&gt;advanced&lt;/a&gt;
  &lt;a&gt;doit&lt;/a&gt;
  </code></pre>
  
  <p>this jquery code:</p>
  
  <pre><code> var pack = $('a:contains("advanced")').attr("onclick");
   $('a:contains("doit")').click(function(){
      alert(pack)
  </code></pre>
  
  <p>and i get:</p>
  
  <pre><code>function onclick(event) {
    return package_order(14400287396);
  }
  </code></pre>
  
  <p>but i need only id number inside()
  should i use regular expression to do it? or what?</p>