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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:36:08+00:00 2026-05-22T22:36:08+00:00

i have many controls like below : <div style=display: inline;> <span id=cvCaptcha-Target class=ttTarget> <asp:CustomValidator

  • 0

i have many controls like below :

                <div style="display: inline;">
                    <span id="cvCaptcha-Target" class="ttTarget">
                        <asp:CustomValidator ID="cvCaptcha" runat="server" Display="Dynamic" OnServerValidate="cvCaptcha_ServerValidate">
                            <asp:Image ID="img4cvCaptcha" CssClass="imgValidate" runat="server" AlternateText="attention"
                                ImageUrl="~/Images/Login/Exclamation.png" />
                        </asp:CustomValidator>
                    </span>
                    <div id="cvCaptcha-Content" class="ttContent">
                       captcha is incorrect!!!
                    </div>
                </div>

as you see i put the ttContent of each control in the below of it (inside a div) and i have many controls with ttTarget class…

the qtip2 codes for mouse tracker tooltips is like below :

        $('#target').qtip({
            content: 'i am tool tip',
            position: {
                my: 'top left',
                target: 'mouse',
                viewport: $(window), // Keep it on-screen at all times if possible
                adjust: {
                    x: 10, y: 10
                }
            },
            hide: {
                fixed: true // Helps to prevent the tooltip from hiding ocassionally when tracking!
            },
            style: 'ui-tooltip-shadow'
        });

when we use id s for qtip every thing is so simple and we can find target’s content easily!
but in my scenario i have many id s that i do n’t know how can i recognize their content by the upper code !

i mean :

        $('.ttTarget').qtip({
            content: '______________' -> here is my problem (how can i find ttContents),
            position: {
                my: 'top left',
                target: 'mouse',
                viewport: $(window), // Keep it on-screen at all times if possible
                adjust: {
                    x: 10, y: 10
                }
            },
            hide: {
                fixed: true // Helps to prevent the tooltip from hiding ocassionally when tracking!
            },
            style: 'ui-tooltip-shadow'
        });

thanks in advance

  • 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-22T22:36:09+00:00Added an answer on May 22, 2026 at 10:36 pm

    Way 1 :

    $(function () {
                $('.ttTarget').qtip({
                    overwrite: false,
                    content: {
                        text: function (api) {
                            return $(this).parent('div').find('div.ttContent').html();
                        }
                    },
                    position: {
                        my: 'top left',
                        target: 'mouse',
                        viewport: $(window),
                        adjust: {
                            x: 10, y: 10
                        }
                    },
                    hide: {
                        fixed: true
                    },
                    style: 'ui-tooltip-shadow'
                });
    

    way 2 :

        $('.ttTarget').live('mouseover', function (event) {
            //alert($(this).next('div.ttContent').text());
            //alert($(this).parent('div').find('div.ttContent').html());
            $(this).qtip({
                overwrite: false,
                content: $(this).parent('div').find('div.ttContent').html(),
                position: {
                    my: 'top left',
                    target: 'mouse',
                    viewport: $(window),
                    adjust: {
                        x: 10, y: 10
                    }
                },
                hide: {
                    fixed: true
                },
                show: {
                    event: event.type,
                    ready: true
                },
                style: 'ui-tooltip-shadow'
            }, event);
        });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'd like to develope simple set of controls to display many sort of data
I have a windows with many controls in it, which are organized in containers,
I have a UserControl that is composed of many controls such as Buttons and
i have to create one asp.net mvc page that will show template of controls.
I have a form with many controls (treeview , memo ,listbox ,panels etc ).
I have in many places in my ASP.NET project used the Session variable for
I have a custom component which contains many promptingTextInput controls. When i click a
I have many items inside a list control. I want each item to have
I have many years of experience in Java including Swing, Servlet and JDBC, but
I have many emails coming in from different sources. they all have attachments, many

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.