Delete Confirmation
<p>I have a set of records which are displayed in tabular format in a form. On each record there is a delete checkbox - here is the form in simplified format:</p>

<pre><code>&lt;form method="post" action="" id="update-history-form"&gt;
  Item 1 &lt;input type="checkbox" value="1" name="History[0][delete]"&gt;
  Item 2 &lt;input type="checkbox" value="1" name="History[1][delete]"&gt;
  Item 3 &lt;input type="checkbox" value="1" name="History[2][delete]"&gt;

  &lt;input type="submit" value="Update History" name="update"&gt;
&lt;/form&gt;
</code></pre>

<p>The integer value in the input 'name' attribute helps identify which records have been selected for deletion.</p>

<p>What I want is for a JavaScript alert confirmation to appear if any of the delete checkboxes have been ticked (upon submit).</p>
