Delete from Link Dynamically named form
<p>I want to pass the form name to the function and then confirm they are read to delete it after that I want to change the action then submit the form.</p>

<pre><code>function deletePhone(myForm){
   var r=confirm('Are you sure you want to delete this phone?');
   if(r==true){
       $(myForm).attr("action","index.cfm?deleteThis=1");
       $(myForm).submit();
   }
}
</code></pre>

<p>currentrow is a variable that I am using because I am creating multiple forms and it holds the currentCount for the form.</p>

<pre><code>   &lt;a href="javascript:deletePhone('EditPhone_form_#currentrow#');"&gt;X Delete Phone&lt;/a&gt;
</code></pre>

<p><strong>Example:</strong></p>

<ul>
<li>EditPhone_form_1 </li>
<li>EditPhone_form_2 </li>
<li>EditPhone_form_3 </li>
<li>EditPhone_form_4</li>
</ul>
