Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8502969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T01:37:52+00:00 2026-06-11T01:37:52+00:00

This is my code <script> $(document).ready(function() { // delete the entry once we have

  • 0

This is my code

<script>
$(document).ready(function() {



    // delete the entry once we have confirmed that it should be deleted

    $('.delete').click(function() {

        var parent = $(this).closest('tr');


        $.ajax({

            type: 'POST',

            url: 'delete.php', 

            data: 'ajax=1&delete=' + $(this).attr('id'),



            success: function() {

                parent.fadeOut(300,function() {

                    parent.remove();

                });

            }

        });        

    });


    $('.delete').confirm({



    });    

});

</script>

My question is why delete.php is not executing? It’s in the same folder, do I need type absolure url to this file? But the best of it is that row in table is deleting, but php file is not executing.
And second question is why this code is not working without this line:

  $('.delete').confirm({



        });   

In php file i got this to know is it executed:

<script>
alert('aaaa');
</script>

Or even I had change it on echo 'something'; but still not working

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T01:37:54+00:00Added an answer on June 11, 2026 at 1:37 am

    If the row is deleted the certainly the php file is executed and you have to check the url data as @Saifuddin has described.

    use firebug console to see your result. and also you are not passing parameter to the success function

    so change this

    data: { ajax: 1, delete: $(this).attr('id')},
    

    and also this

    success: function(msg) {
       alert(msg)
       parent.fadeOut(300,function() {
          parent.remove();
       });
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Say I have this code in my page: <script language=javascript> $(document).ready(function() { $(.test).click(function() {
I have a JS code like this <script type=text/javascript> $(document).ready(function(){ $('.main').on('click', '.block', function (){
I have (basically) this code - <script type=text/javascript language=javascript> $(document).ready(function() { $(#loadDiv).load(mypage.html, function(){ alert($(#someText).text())
I mean I have this code: <script> $(document).ready( function() { $('html, body').animate({ scrollTop: $(.error).offset().top
I used this code for sending and returning result. <script type=text/javascript> $(document).ready(function() { $('.special').click(function(){
I have this code running great in ff, opera and chrome: <script type=text/javascript> $(document).ready(function(){
I have the following code $(document).ready(function(){ // class exists if($('.delete').length) { // add click
This code still sets the field to today's date <script type=text/javascript> $(document).ready(function () {
When using this code: <script> $(document).ready(function () { $.getJSON(http://twitter.com/statuses/user_timeline/USERNAME.json?callback=?, function(data) { if(data[0].text.length > 107)
I'm using this code: <script> $(document).ready(function () { $.getJSON(http://twitter.com/statuses/user_timeline/USERNAME.json?callback=?, function(data) { $(.show_tweet).html(data[0].text); }); });

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.