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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T11:40:13+00:00 2026-06-02T11:40:13+00:00

JqueryUI: The code below fires an alert every time the box is closed, but

  • 0

JqueryUI:
The code below fires an alert every time the box is closed, but how can I make it so it only does this for once and not every time.

$("#box").dialog({
    close: function () {
            alert(999);
    }
});

This was how I did it before using jQueryUi:

$("#box").one("click", function () {
    alert(999);
    return false
});
  • 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-02T11:40:18+00:00Added an answer on June 2, 2026 at 11:40 am

    According to the docs, the .close() method also has a corresponding event: dialogclose. So you should be able to do this:

    $("#box").one("dialogclose",function() {
        alert(999);
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using JQueryUI Dialog and created this function below: <script> $(document).ready(function() { $('#dialog').dialog({
I have this code below. It works fine in safari however in IE the
The code below is colouring the input but not submitting the form in chrome.
According to this page: http://jqueryui.com/demos/tabs/#ajax I can have the content of tabs in separate
All, In the code below, <html> <head> <link type=text/css href=http://jqueryui.com/latest/themes/base/ui.all.css rel=stylesheet /> <script type=text/javascript
I'm trying to figure out how to fix this code for jQueryUI 1.8.5 and
I'm using jquery ui daterange datepicker http://jqueryui.com/demos/datepicker/#date-range my code is below it's pretty much
With the below code I need to maintain the inclusion load order but I'm
the below code works fine but my requirement is little different then what it
I have the basic jQueryUI progress bar code here; <script> $(function() { $(#progressbar).progressbar({ value:

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.