jquery - using a function id in a different function
<p>I have a function like that:</p>

<pre><code>function loadcategory(id) {
   jQuery("#categoryArea").load("ajax_post_category.php?catid="+id+"");
  }
</code></pre>

<p>im getting id via link like that:</p>

<pre><code>&lt;a href='javascript:loadcategory(".$row['catid'].");'&gt;
</code></pre>

<p>i would like to use function loadcategory(id)'s id in a different function. for example:</p>

<pre><code>function different() {
       jQuery("#different").load("ajax_post_category.php?catid="+loadcategory(id)+"");
      }
</code></pre>

<p>as you can see i wanted to use +loadcategory(id)+, however i havent gotten any values. well, how can i get that value by jquery? i dont know, can anyone tell me the true way?</p>

<p>regards</p>
