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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:53:18+00:00 2026-06-11T18:53:18+00:00

Sorry, I did look for the answer before posting. But I couldn’t find what

  • 0

Sorry, I did look for the answer before posting. But I couldn’t find what I was looking for.

I am trying to use jQuery UI’s tag-it widget. I’m trying to apply the .tagit() method to an element as follows:

jQuery("#myTags:.5aedf589").tagit();

The actual element on the page to which I’m trying to apply the tagit() method is this:

<ul id="myTags:.5aedf589">

That should be a legal id name, but just in case I also tried it with just "#myTags" and have the same problem.

I am using jQuery instead of the $ alias because my script contains both Prototype and jQuery. jQuery is loaded first, and from the docs it says I should be able to use jQuery instead of $ even without using noConflict(). I did try using noConflict too, but it didn’t help.

The problem is that the above jQuery expression results in the following JavaScript error:

Syntax error, unrecognized expression: "#myTags:.5aedf589"
  • 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-11T18:53:19+00:00Added an answer on June 11, 2026 at 6:53 pm

    : and . have special meaning in queries, the period is a class selector and the colon is the pseudo selector. If you want to use them for something else, you have to escape them with a \, and escape the \ for a JS string; therefore, insert \\ before them. http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_select_an_element_by_an_ID_that_has_characters_used_in_CSS_notation.3F

    jQuery("#myTags\\:\\.5aedf589").tagit();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sorry for question but I can't find answer anywhere on internet. I couldn't find
Sorry if this is a re-post. I did not find a suitable answer. Please
Sorry, I'm sure making a silly mistake, but did not work out. I'm compiling
sorry for the dummy question but I cannot find a simple and clean way
sorry if this question has been asked before, I searched but wasn't sure on
Sorry I suspect the answer is easy but I'm getting annoyed at the way
Sorry folks but I asked a question earlier and perhaps did not explain myself
Im sorry to write such a dumb Title. But i did not get any
Sorry for posting the same problem again, but I used the suggested solutions, and
Sorry since this question is specific to my problem. While learning reflections i did

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.