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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:52:32+00:00 2026-06-13T14:52:32+00:00

I want to create a small popup using jQuery that appears when I icon

  • 0

I want to create a small popup using jQuery that appears when I icon is clicked. I want the top corner of the popup to overlap with the icon so that there is an intuitive connection between the small window and the button (as opposed to the current behavior where it appears in the middle of the screen). This is similar to wunderlist.com when one clicks on the clock and the calendar appears. I want to create a modal that has a calendar, a text box, and a button.

I can get the jquery modal to appear, but I can’t control it’s positioning; it always appears in the center of the screen. I’m using the code at jQuery UI

<script type="text/javascript">
    $.fx.speeds._default = 100;
    $(document).ready(function() {

        $( "#dialog" ).dialog({
            autoOpen: false,
            show: "blind",
        });

        $( ".hold_btn" ).click(function() {
            $( "#dialog" ).dialog( "open" );
            return false;
        });

    });
</script>

<button class="btn btn-primary hold_btn" type="button">Button</button>

<div id="dialog" title="Basic dialog">
    <p>This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p>
</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-06-13T14:52:33+00:00Added an answer on June 13, 2026 at 2:52 pm

    You can use method position
    option-position

    In you case you need to use following code.

    $.fx.speeds._default = 100;
        $(document).ready(function() {
         $( ".hold_btn" ).click(function() {
                $( "#dialog" ).dialog(
                    { 
                        position: {
                            my: "left top", 
                            at: "right top",
                            of: window } }
    
                ).dialog("show");
                return false;
            });
    
        });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create a small document management system. There are several users who
I want to create a small helpdesk ticket control system at work, that would
I want to create a small program in C# in Windows that would open
I want to create a small application that will be able to recognize sound.
I want to create a small delay so that my 1st set of codes
I want to create a small sample app that can read my employee badge
I'm using google maps javascript API, I want to create a small InfoWindow with
I want to create my small html editor with using html5 <section contenteditable=true> Edit
i want to create a small c# application. there is a text box and
I want to create a small Java application that will be capable of simple

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.