jQuery Deleting Record from MySQL Table Row in Ajax

jQuery Deleting Record from MySQL Table Row in Ajax

Today, We want to share with you jQuery Deleting Record from MySQL Table Row in Ajax.
In this post we will show you jQuery Deleting Record from MySQL Table Row in Ajax, hear for jQuery Deleting Record from MySQL Table Row in Ajax we will give you demo and example for implement.
In this post, we will learn about How to Delete Record from MySQL Table with AJAX with an example.

Read Also:  Laravel Server Side Individual Column Filtering

Simple Mysql DATABASE DETAILS

your database name : pakainfo
your table name : delete
your column names : id, content

List Of Files

1.dbcon.php
2.do_delete.php
3.index.php

The above all files and JQuery external min file in important too Include.

dbcon.php

do_delete.php

INDEX.PHP


<div class="container">

<div class="show">
<span class="name"></span>
<span class="action"><a href="#" id="" class="delete" title="Delete">X</a></span>
</div>
 
</div>

AJAX SCRIPT


$(function() {

//class name is delete
$(".delete").click(function(){
//get element
var element = $(this);

//store id
var del_id = element.attr("id");
var info = 'id=' + del_id;
if(confirm("Are you sure you want to delete this?"))
{
 $.ajax({
   type: "POST",
   url: "do_delete.php",
   data: info,
   success: function(){
 }
});
  $(this).parents(".show").animate({ backgroundColor: "#003" }, "slow")
  .animate({ opacity: "hide" }, "slow");
 }
return false;
});
});

We hope you get an idea about jQuery Deleting Record from MySQL Table Row in Ajax
We would like to have feedback on my Information blog .
Your valuable any feedback, Good question, Inspirational Quotes, or Motivational comments about this article are always welcome.
If you liked this post, Please don’t forget to share this as Well as Like FaceBook Page.

Read Also:  Add Edit And Delete Records Using jQuery Ajax PHP And MySQL

We hope This Post can help you…….Good Luck!.

Searches related to : jQuery Deleting Record from MySQL Table Row in Ajax

  • ajax delete table row in php
  • delete using ajax jquery
  • delete record without a page refresh with ajax in php
  • ajax table – add edit delete rows dynamically using jquery php
  • how to delete mysql rows with ajax & jquery
  • delete row from table using ajax in php
  • live table add edit delete using ajax jquery in php mysql
  • ajax delete function in php
Read Also:  What is jquery Hasclass? - jQuery Check if Element has Class

Related FAQ

Here are some more FAQ related to this Article:

  1. Read Also:  Simple Ajax Upload image using jQuery PHP
  2. Read Also:  Simple PHP jQuery Ajax Insert Update Delete using MySQLi
  3. Read Also:  Simple Laravel Pagination Example Tutorial
  4. Read Also:  Create Live Editable Table with jQuery AJAX using PHP MySQLi
  5. Read Also:  Laravel 6 CRUD Tutorial With Example from scratch
  6. Read Also:  Delete Table Rows Using PHP JQuery Ajax
  7. Read Also:  html5 email link - mailto Examples
  8. Read Also:  jQuery Enable Disable Submit Button Example
  9. Read Also:  PHP MySQL Inline Editing Dynamically using jQuery Ajax
  10. Read Also:  Image Zoom In Zoom Out using JQuery