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 7189369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:17:15+00:00 2026-05-28T19:17:15+00:00

So first, I do this: $(document).ready(function(){ $(form#delete_admire).submit(function() { // we want to store the

  • 0

So first, I do this:

$(document).ready(function(){
$("form#delete_admire").submit(function() {
// we want to store the values from the form input box, then send via ajax below
var  deleteIdAdmire    = $('#deleteIdAdmire').attr('value');
var  location = 'li#liadmire_'+ deleteIdAdmire;
    $.ajax({
        type: "POST",
        url: "../admire/delete.php",
        data: "deleteIdAdmire="+ deleteIdAdmire,
        success: function(){
            $(location).hide(function(){$('div.success2').fadeIn();});

        }
    });
return false;
});
});

This works… now for the past hour or so I’ve been trying to get the ‘div.success2’ to fade out and to reset the script so when someone clicks the delete again, it will run all over again. I’m very new to JQuery and javascript, I apologize for my probably very stupid question. Thank you all in advance!

  • 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-28T19:17:16+00:00Added an answer on May 28, 2026 at 7:17 pm

    I see no reason why this code can’t run multiple times. The fadeOut can be done very easily:

    $('div.success2').fadeIn().delay(5000).fadeOut();
    

    Replace 5000 with whatever delay you would like before it fades out.

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

Sidebar

Related Questions

JQUERY: $(document).ready(function(){ $('form').submit(function(){ var content = $(this).serialize(); //alert(content); $.ajax({ type: 'POST', dataType: 'json', url:
$(document).ready(function(){ console.log(1); $('#selectid').triggerHandler('change'); $('#selectid').trigger('change'); $('#selectid').change(); console.log(2); $('#intervention1-form').change(function() { console.log('WHY DOESNT THIS HAPPEN?'); }); });
I am having two problems. First: Trying to submit this form using jquery. When
Code: $(document).ready(function(){ $(.div).hide(); $(document).on('keypress paste', function() { $('form').focus(); $(.div).show(fast); }); }); Thanks to adeneo
So here is my code: $(document).ready( function() { $('#form').bind('change', function(){ $.ajax({ type: 'get', url:
I have loaded in a form via jQuery. As a consequence the $(document).ready(function() that
this is my first time trying to use document classes in AS3 and im
Code first: '''this is main structure of my program''' from twisted.web import http from
I want to disable the submit button when a user submits the form so
I have a form, the first .class has 5 input:text boxes in it. I

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.