New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i18n problem #62
Comments
I got this working with: content: $('#tooltiptext'), but it shows me only the first element with the id in each tooltip. How do I show the right text in each tooltip. It only should show the child div of the tooltip div. This is my HTML Structure:
|
You need unique id for each element. In your case, it's better to use class as selector instead of using id.
Then you can use |
@tajenli thanks. yes using $(".jb-tooltip") would be better for me also. My problem is in each tooltip i get now all text together instead of showing each text in a separate tooltip. Is the a way to use only the direct child . jb-tooltip from .tooltip element? to clarify: I get now text1,text2,text3 in each tooltip instead of the specific content |
Here are the sample codes. 1st one use default title attr. for content, 2nd one use data-jb-title &data-jb-content for content. Hope this help. html
js
|
@tajenli
The i18n="" places text out of my language file inside the cf_tooltiptext div. I modified the jBox.js file this way:
and placed this script in my html file:
now I'm getting all the output from all i18n="" in each tooltip instead of just the right one. What should I change? |
try this:
|
still no luck :( |
Just create a new html file and copy & paste the following codes. You can see it works.
|
Thanks, but this only shows me now exactly the value in my i18n="" in the tooltip but not the flushed text out the json file. The text gets flushed now in the helpicon div instead of the tooltip. |
figured it out! This is how it works for me:
|
Not sure why you store tip content from json into a hidden children element? |
Hi Stephan,
great work on jBox! I have a quick question about it.
I need the tooltips to show a specific text for each tooltip. The text is placed in a separate json file.
In the HTML the contents of the language file are called this way:
There can be different tooltips an a single page.
How can I modify this to work?
Thanks a lot in advance!
The text was updated successfully, but these errors were encountered: