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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T22:19:21+00:00 2026-06-03T22:19:21+00:00

Im trying to select the span by using the (.class) selector but for one

  • 0

Im trying to select the span by using the (.class) selector but for one or another reason this is not working.

<div class="text-wrap">
<div class="text-list">
  <div class="text-suggestion">
     <span class="text-label">Lorem</span>
  </div>
</div>
</div>

 jQuery(document).ready(function() {

        jQuery('.text-label').click(function(e){
            alert('lol');
        });
});

I can only select .text-wrapper the others are not working.. is this a jQuery program fault? I also have to say that im using the jQuery textext plugin.

UPDATE:

I forgot the quotes in my first post but this is not the problem. The code is also in a script tag otherwise it would not be possible to select the text-wrap div.

I still have the problem that everthing that is in the text suggestion div can’t be triggered.

I am using the textext plugin from Textext

ANOTHER UPDATE afther the comment:

jQuery("#customfield_10000").keyup(function(e){
                            teller = teller + 1;
                            if(teller % 2 == 0){
                            if(e.keyCode == 13)
                            {
                                jQuery("#customfield_10001").focus();
                            }    

            crmAccount = jQuery(this).val();
            lijstAccounts.length = 0;

                    jQuery.ajax({
                        url: "http://"+serverIp+"/getAllAccountNamesJsonP?jsonp_callback=?",
                        dataType: 'jsonp',
                        jsonp: "jsonp_callback",
                        data: {
                            featureClass: "P",
                            style: "full",
                            maxRows: 12,
                            name_startsWith: jQuery(this).val(),
                                                            crm_acc: crmAccount,
                            },
                            success: function( data ) {
                                lijstAccounts.length = 0;
                                 jQuery.map( data, function( item ) {
                                                            lijstAccounts.push(item);
                                                            jQuery('#customfield_10000').trigger(
                                                                'setSuggestions',
                                                            { result : textext.itemManager().filter(lijstAccounts, query) }
                                                            );              
                                    return {
                                        label: item.label,
                                        value: item.value    
                                    }
                                });
                            }
                        }); 
                            }
        });

jQuery('#customfield_10000').textext({
                plugins : 'autocomplete'
                }).bind('getSuggestions', function(e, data)
                    {

                        textext = jQuery(e.target).textext()[0],
                        query = (data ? data.query : '') || '';

                    });
  • 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-03T22:19:22+00:00Added an answer on June 3, 2026 at 10:19 pm

    i don’t see any problem with your code.. check the jsfiddle here, it’s just the copy paste of your code. I think you don’t have any jquery script included in the page. Try to include one and that should solve your issue

    in the jsfiddle i included Jquery 1.7.2.

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

Sidebar

Related Questions

I am trying to select a span within a span within a div using
i am trying to parse the title of this content using JSOUP.. <div class=article>
I am trying to select a <div> using jquery's $('#divname') inside a infobox that
I have a text string i'm trying to select the spans from using jQuery.
I am trying to echo out an array using for each but it's not
I have a situation like this, Iam trying to select a label using Id
I'm trying to select a <div> inside of a <p> by name, but it's
I'm trying to select all <div> s with the same ID in jQuery. How
I've been trying to select an item on an external listview but it seems
I'm trying to SELECT two values in one statement instead of two statements. The

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.