title: call jQuery function
body: <p>I want that diffrent events to call the same function. I read other post, from here, but I   want use this function just in one page.</p>
  
  <p>The situation is something like this:</p>
  
  <p>I have approx. 80 listbox(select) in a form, and I feed them throught a plugin, jCombo (jQuery&amp;jSON&amp;php). First I relate each select listbox (<code>.change()</code>) to a hidden field, because I want to store index on table (update method is made with php). The problem is when I reopen same record for modify(same php file), jCombo change all <code>&lt;select lists&gt;</code> and reinitialize to 0. So my my event <code>$("select#listbox").change({});</code> change, obviously, my hidden field value to 0.</p>
  
  <p>Having this situation I find a simple solution (I start use jQuery&amp;Ajax three days ago) to unrelate function from select lists and relete to $("#AddButton").onmouseup({...});.
  So, I write for 80 hidden field: </p>
  
  <pre><code>if ($("select#listbox_n_").val() != 0) {
     $("#hidden_n_").val($("select#listbox_n_").attr('value'));
  }
  </code></pre>
  
  <p>,where n=1...80.</p>
  
  <p>But now I must repeat this for Update button so:</p>
  
  <ol>
  <li>there is other method to address a function by name?</li>
  <li>what is the best place (eg.procedure or something) to "store" function, because I want to execute them, only if it's call.</li>
  </ol>