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

  • Home
  • SEARCH
  • 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 6225295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T08:49:04+00:00 2026-05-24T08:49:04+00:00

I have am making a page using Ajax, Jquery, and PHP. I have gotten

  • 0

I have am making a page using Ajax, Jquery, and PHP. I have gotten my table working so that when I click on a row it will set is as a ‘selected’ class, I have a button that says delete on it, but not sure how to link the two together.

My question is, how do I tell the button to get the id of the item in that row, send it to a pretty photo page and tell the database to delete it?

EDIT:

Here is some code:

// this is for the buttons

<

    div id="controlPanelSpacer"></div>

        <div id="controlPanel">
            <div id="controlPanelContent">
                <div class="btnContainer">
                    <a href="#editWindow">
                        <div id="cpEditButton" class="cpButton">
                        </div>
                        <span>Edit</span>
                    </a>
                </div>
                <div class="btnContainer">
                    <a href="#deleteWindow" rel="prettyPhoto">
                        <div id="cpDeleteButton" class="cpButton">
                        </div>
                        <span>Delete</span>
                    </a>
                </div>
                <a href="uploader.php" rel="facebox">Upload</a> 
            </div>
        </div>  
    </div>

    //This is for the deleteWindow which I will be using PrettyPhoto

    <div id="deleteWindow" style="display:none">
        <div id="deleteWindow">
        <form>
            <p>
                <label for="name">Name</label>
                <p id="name" type="text">Are you sure you want to delete: </p>
        </form>
    </div>
    </div>
  • 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-05-24T08:49:06+00:00Added an answer on May 24, 2026 at 8:49 am

    When you click the button, you do an ajax call to your server that deletes it. Wait for a success reply from the server, then use jQuery to find the row and .remove() it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I m making an ajax call using jQuery to an ASP.NET page which acts
I'm making a request to a JSON page using jQuery's $.getJSON method, and from
Right so I'm making a news system that uses jQuery and AJAX for the
I have a page on my website that I am making a call to
I have some JavaScript that is making an Ajax call to a relative url
Please have a look at this page www.pixeli.ca/issue. I have begun making a page
I have a main page from where I am making a call to load
I have been making a threaded comment system as a way to learn php
I have some experience making multiplayer turn-based games using sockets, but I've never attempted
I have the following code making a GET request on a URL: $('#searchButton').click(function() {

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.