SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: JQuery Tooltips

  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2012
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    JQuery Tooltips

    Pullo provided great help to me earlier on tooltips and I'm now using JQuery tooltips.

    Here is the code for one of my tips:

    Code:
    <script>jQuery('#main_wrapper').html(jQuery('#main_wrapper').html().replace(/(IT)/g,'<a href="#" class="normalTip" title="Incubation Temperature (IT)">$1</a>'));</script>
    My issue is this: This tip also appears in the middle of the word "CITES" instead of just where "IT" appears. How can I limit the tip to exact matches?

  2. #2
    SitePoint Enthusiast
    Join Date
    Aug 2012
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Solved.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •