How to post a particular button from jQuery
<p>How can I submit a particular button by jQuery without submiting other buttons in the same form</p>

<p>I want to post the delete button only when i clck yes in jquery confirmation box</p>

<pre><code>$(document).ready(function(){
  $( "#dialog:ui-dialog" ).dialog( "destroy" );
  $( "#dialog-confirm" ).dialog({
    resizable: false,
    height:140,
    modal: true,
    buttons: {
      "Ok": function() {
        $('#form1').submit();
        //*****************************************************************
      },
      Cancel: function() {
        $( this ).dialog( "close" );
      }
    }
  });
});
</code></pre>

<p>Here I want to post only delete button in php without submiting whole form</p>

<pre><code>$('#form1').submit();
</code></pre>

<p>What is the modification needs to be done in this code?</p>

<p>my php code </p>

<pre><code> if(isset($_POST['delete_btn'])  &amp;&amp;  $_POST['delete_btn']=='Delete' ){
    $rid=$_POST['roleid'];
    $sql_u="SELECT * FROM `user_mst` WHERE `role_id`=".$rid;
    mysql_query($sql_u,$conn) or die("Unable to execute queary :". mysql_error());
 }
</code></pre>
