Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(".DeleteInvoiceLine").click(function() {
- //Get the Id of the record
- var record_id = $(this).attr("id");
- var loc = window.location;
- // Ask user's confirmation
- if (confirm("Do you want to delete this record?")) {
- $.ajax({
- type: "POST",
- url: loc + "/DeleteInvoiceLineEntry",
- //Pass the selected record id
- data: "{'args': '" + record_id + "'}",
- contentType: "application/json; charset=utf-8",
- dataType: "json",
- success: function(msgstr) {
- var msg = $("#ctl00_ContentPlaceHolder1_success");
- msg.html(msgstr.d);
- msg.show();
- }
- });
- }
- return false;
- });
Add Comment
Please, Sign In to add comment