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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T05:55:23+00:00 2026-06-08T05:55:23+00:00

I have a function to erase some commerce from the database, I want the

  • 0

I have a function to erase some commerce from the database, I want the confirmation to appeared in a lightbox. It does open in a lightbox but it close almost instantly =/

jQuery:

    $('a#MontrerSuppression').click(function(){

    $('#BackgroundSuppression,#Suppression').fadeIn('fast');

});

$('a#CacherSuppression').click(function(){

    $('#BackgroundSuppression,#Suppression').fadeOut('fast');

});

php/html:

<a href='myaccount.php?IDCommerce=<?php echo $Commerce['IDCommerce'];?>' id="MontrerSuppression">Supprimer Commerce</a>

css:

BackgroundSuppression{width: 100%; height: 100%; position: absolute; top:0; left: 0; background-color: #999; opacity: 0.5; z-index: 1; display: none;}

Suppression{position: absolute; width: 375px; background: #fff; border: 1px solid #000; padding: 20px 20px 10px 10px; top: 50%;
margin-top: -130px; left:50%; margin-left: -250px; z-index: 2; display: none; text-align: center;}

The form:

            <div id="Suppression">
            <a href="#" id="CacherSuppression"><strong>×</strong></a>

            <?php supprimerCommerce(); ?>

            <form method="POST" action="myaccount.php">
                <p>Êtes vous sur de vouloir supprimer votre commerce?</br>Une fois supprimer les informations seront perdu à jamais.</p>
                <input type="submit" name="Confirmer" value="Oui"/>
                <input type="submit" name="Annuler" value="Annuler"/>
            </form>
        </div>

Think the problem is on the way I “link” the html link to the jQuery function but can’t figure out what is the proper way to do it.

Really appreciat if someone could give me some help

  • 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-08T05:55:25+00:00Added an answer on June 8, 2026 at 5:55 am

    Try this fiddle and let me know if it is OK for you

    EDIT

    OK, I understand. The fact is that the onclick event is overwrited by the href link.
    Try this fiddle version : http://jsfiddle.net/dMpNE/1/

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

Sidebar

Related Questions

I have function LoadTempMovieList(), and need to load movies from sessionStorage. But it seems
I've got some links I want to have dynamically open in a jQuery UI
I want to erase some iterator from a vector, so this is what I
I have a problem using the string function erase with iterators. The function below
I have function getCartItems in cart.js and I want to call that function in
I have some javascript click handlers that don't do what I want in IE8.
I have this AS2 code that does some simple animations when I rollover a
Continuing from my last question C++ template class map I have implemented the function
This is difficult for me to put into words, but say I have some
In the code of my game, I want to remove some elements from a

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.