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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T09:48:42+00:00 2026-05-25T09:48:42+00:00

I am using a tooltip plugin (qTip 2.0) and trying to specify content for

  • 0

I am using a tooltip plugin (qTip 2.0) and trying to specify content for the tooltip.

I get an error unterminated string literal

Here is the code:

<script type="text/javascript">
var $j = jQuery.noConflict();
$j('.tool').qtip({
content: 'Don\'t want...', 
position: {
  my: 'bottom left', 
  at: 'top left', 
  target: $j('.tool') 
  },
  style: {
  classes: 
  'ui-tooltip-dark ui-tooltip-shadow ui-tooltip-rounded ui-tooltip-tipsy'
}
});
</script>

In the Content you will see the word Don't I understand that JS will see the ' as an end to the content how do I get it to read Don’t properly?

I have tried Don\'t and that did not work. I have tried changing ' to " and that did not work.

I know there is a way around this I cannot remember though! Help!

  • 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-05-25T09:48:43+00:00Added an answer on May 25, 2026 at 9:48 am

    Try putting double quotes around the content with the single quote, should fix it.

    ...
    content: "Don't want...",
    ...
    

    Does this help?

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

Sidebar

Related Questions

I am trying to display google map as a tooltip using qTip jquery plugin.
I am using JQuery plugin qtip for displaying tooltip in asp.net application. Here is
I am using the jquery tooltip and here is the code for it Javascript
I am using this jQuery Tooltip plugin . I am trying to emulate the
I'm using http://dev.mariusilie.net/content/simple-tooltip-jquery-plugin for my tooltip and simple modal for a modal window. I've
I am using jQuery along with the Simple Tooltip plugin. ( http://dev.mariusilie.net/content/simple-tooltip-jquery-plugin ) I
I'm trying to rewrite a Mootools tooltip class in JQuery using this class plugin
I'm using the qTip jQuery plugin to generate a dynamic tooltip. I'm getting an
I am using the jQuery Tools Tooltip (http://flowplayer.org/tools/tooltip/index.html), and I'm trying to get the
I am using the qTip jQuery plugin, and want the tooltip to appear only

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.