title: How to call multiple onclick events from one button/a href link?
body: <p>I have the following code:</p>
  
  <pre><code>&lt;input id="unassignButton" class="unassignButton" type="button" value="[[Unassign]]" onclick="javscript:unassignImage({$file.sid},{$listing_sid});"/&gt;
  </code></pre>
  
  <p>In the end code, multiple inputs like that might be generated <code>{$file.sid},{$listing_sid}</code></p>
  
  <p>So I can have, for example:</p>
  
  <pre><code>&lt;input class="unassignButton" type="button" value="Unassign" onclick="javscript:unassignImage(1533,185);"&gt;
  &lt;input class="unassignButton" type="button" value="Unassign" onclick="javscript:unassignImage(1558,290);"&gt;
  </code></pre>
  
  <p>Now I want to create a link that will call the "onclick" function <code>javscript:unassignImage</code> of all the inputs that have the unassignButton ID one by one, with the proper parameters being considered <code>unassignImage(1558,290)...</code></p>
  
  <p>How can I do that?</p>
  
  <p>Thanks in advance,
  Arky</p>