Posted injQuery / JavaScript

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.

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



<a href="#" id="" class="delete" title="Delete">X

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.

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

I am Jaydeep Gondaliya , a software engineer, the founder and the person running Pakainfo. I'm a full-stack developer, entrepreneur and owner of Pakainfo.com. I live in India and I love to write tutorials and tips that can help to other artisan, a Passionate Blogger, who love to share the informative content on PHP, JavaScript, jQuery, Laravel, CodeIgniter, VueJS, AngularJS and Bootstrap from the early stage.

Leave a Reply

Your email address will not be published. Required fields are marked *

We accept paid guest Posting on our Site : Guest Post Chat with Us On Skype