Javascript Yes / No confirm dialog

You can see this

  function Remove(ctrl) {   
    if (confirm('Pressing OK will delete this record. Do you want to continue?') == false) {   
     return false;   
    }   
    var row = $(ctrl).parent().parent().parent().children().index($(ctrl).parent().parent());   
  //  alert(row);   
    $("#refRowIndex").val(row);   
    var form = $("#frmStudentDetails");   
    var serializedForm = form.serialize();   
    var url = "/Student/RemoveStudentDetails";   
    $.post(url, serializedForm, function (result) {   
     $("#divStudentDetails").html(result);   
    }, "html");   
    return false;   
   }   


Popular posts from this blog

WPF Crystal Report Viewer Using SAP

mvc razor textboxfor change event change another textboxfor value

ASP.NET MVC razor SAP Crystal report