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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T14:47:34+00:00 2026-06-08T14:47:34+00:00

Does anyone know if you can use a jQuery balloon on a text input

  • 0

Does anyone know if you can use a jQuery balloon on a text input that is contained on a jQuery modal dialog?

<div id="dlg-clock_in_out">
  <section class="roundbox-sml" style="padding:5px; 5px;">
    <input type="hidden" name="empid" id="empid" value="" />
    <div style="width:100%; text-align:center;">
      <label for="pin">PIN: </label><input type="password" name="pin" id="pin" maxlength="4" size="5" value="" />
    </div>
    <div id="login-btns-wrapper">
      <input type="button" id="loginSubmit" class="buttons roundbox-sml" value="<?=$btn_text?>" />
      <input type="button" class="buttons roundbox-sml" name="loginCancel" id="loginCancel" value="Cancel" />
    </div>
  </section>
</div>

<script type="text/javascript">
  $('#pin').keypress(function(e) {
    if(check_pin_chars(String.fromCharCode(e.which))) {
      $(this).val('');
      $(this).balloon({
        position     : "top right",
        showDuration : 125,
        minLifetime  : 2000,
        tipSize      : 4
     });

     $(this).showBalloon();
   }
});

And the jquery I want to use when this modal dialog is shown is supposed to put a balloon next to the input field, but I don’t know if a balloon can exist on an element residing in a jquery modal dialog.

Does anyone know if this is possible? I know how to do it for a standard form input element. It’s just not showing up on my modal dialog.

Here’s what I’m attempting to use to accomplish this. http://file.urin.take-uma.net/jquery.balloon.js-Demo.html

Thanks.

  • 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-08T14:47:35+00:00Added an answer on June 8, 2026 at 2:47 pm

    Your problem may be that you haven’t properly set the z-index of the balloon to be higher than your the modal dialog.

    $('.balloon').css('z-index','9999');
    

    It may also be an option with your JavaScript (I don’t know if you are using a library you wrote or one you found elsewhere):

    $(this).balloon({
        position     : "top right",
        showDuration : 125,
        minLifetime  : 2000,
        tipSize      : 4,
        z-index      : 9999
     });
    

    Update Based on Feedback

    I was pretty close to right with my answer. There are actually two issues with your code and why you are not seeing a balloon.

    First, I was right about the z-index. However, you have to set the z-index in the CSS, not directly in the balloon options. So, in your case, it would be:

    #pin {
     z-index: 99999
    }
    

    However, the other problem that you have comes from your default options. Here is the key wording in the documentation on the jquery.balloon.js site:

    Default contents of balloon is its title. If the element has no title,
    balloon is not created.

    Because you didn’t provide content in your options, you won’t see any balloon because there is nothing it can display. So, since you are displaying it with respect to your pin password box, you have to add either a content option, or add a title to your password box. Something like this:

    <input type="password" name="pin" id="pin" maxlength="4" size="5" value="" title="Correct Pin!" />
    

    I created a little demo on jsfiddle to show how everything comes together.

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

Sidebar

Related Questions

Does anyone know of a tool that I can use to find explicit C-style
Does anyone know of an Image Map-like Blackberry Control that I can use in
Does anyone know of any websites, or (preferably) downloadable packages that you can use
Does anyone know of a jquery plugin that can make a thumbnail of an
Does anyone know of a jQuery plugin or snippet that will auto-text-align cells in
Does anyone know how can I use .jsonp jquery to retrieve data from a
I know I can use Request.Browser.IsMobileDevice . But does anyone know how it works,
Does anyone know how i can use BST for config.time_zone in my rails config/environment.rb
Does anyone know how DbDataReaders actually work. We can use SqlDataReader as an example.
Does anyone know of a jquery css3 plugin that supports cross browser gradients. All

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.