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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T00:46:07+00:00 2026-06-08T00:46:07+00:00

I have a mysterious JS Problem: I activate different jQuery-Plugins with one function. It’s

  • 0

I have a mysterious JS Problem: I activate different jQuery-Plugins with one function. It’s called like this:

<script>
postAjaxCalls();
</script>

Then, the corresponding function looks like this:

function postAjaxCalls() {
    jQuery("[title]").tooltip(); 
    alert("this works great, tooltip not!");
    jQuery("select").selectbox();
} 

When I reload the page, everything works but the tooltip plugin. Now, if I fire the exact same Code into the JS Console, the plugin is activated:

jQuery("[title]").tooltip(); 

Why that? Why does it work when activated via console, but doesn’t work when activated via a function?

Cheers!

  • 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-08T00:46:10+00:00Added an answer on June 8, 2026 at 12:46 am

    Try your code within $(document).ready(function() { .. }) in short $(function() { .. }) to execute your code after DOM ready.

    jQuery(document).ready(function() {
    
      function postAjaxCalls() {
        jQuery("[title]").tooltip(); 
        alert("this works great, tooltip not!");
        jQuery("select").selectbox();
      } 
      postAjaxCalls();
    
    });
    

    OR in short

    jQuery(function() {
    
      function postAjaxCalls() {
        jQuery("[title]").tooltip(); 
        alert("this works great, tooltip not!");
        jQuery("select").selectbox();
      } 
      postAjaxCalls();
    
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say I have a function like this (it's only an example, so do
Here is the mysterious: I have a scope which looks like this (in Image.rb)
Here is the mysterious: I have a scope which looks like this (in Image.rb)
I've run into a mysterious problem. I'm using jQuery's animate function and the object
I have a problem that appears and disappears for mysterious reasons. A while back
Everytime I run the program, this mysterious error pops up saying that I have
have a problem. At first look at this HTML <div id=map style=background-image: url(map.png); width:
I have a repository whose layout is like this: trunk/ projectA projectB branches/ projectA-1.0
This is a weird one. On and off as I have been working on
A very mysterious problem coming up :P I have a server configured with 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.