can ticking checkbox update javascript function call arguments? 
<p>I have <strong>few pairs</strong> of button &amp; check box like on my pages (the <strong>combination</strong> of the first two arguments in this examole it's 'login' &amp; 'basics' is <strong>unique</strong> for each button(</p>

<pre><code>&lt;button class="square_button button_background" type="button" 
           onclick="run_through_ajax('login','basics','false')"&gt; run &lt;/button&gt;
&lt;input name="restore" title="restore before ant run" type="checkbox"&gt;
</code></pre>

<p>Can I somehow</p>

<ul>
<li>update <code>onclick="run_through_ajax('login','basics','false')"</code> to onclick="run_through_ajax('login','basics','<strong>true</strong>')" once the checkbox is <strong>ticked</strong>?</li>
<li>updated <code>onclick="run_through_ajax('login','basics','true')"</code> to onclick="run_through_ajax('login','basics','<strong>false</strong>')" once the checkbox is <strong>un-ticked</strong></li>
<li>can I achieve that <strong>without introducing ID's</strong> for every single button? Can I 'wrap/group' button and checkbox in div so I know what to update?</li>
</ul>

<p>I can use jQuery, doesn't have to be pure javascript solution.</p>

<p>Every 'run' button runs javascript with different parameters. The checkbox is there to distinguish if one extra action needs to be performed before the <code>run</code>.
<img src="http://i.stack.imgur.com/aLlp9.png" alt="enter image description here"></p>
