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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T13:51:40+00:00 2026-06-15T13:51:40+00:00

I have this markup: <span class=top_ticker_middle></span> <div class=pc_elements> <fieldset class=checkable> <span class=as_cp_checkbox></span> <input type=hidden

  • 0

I have this markup:

<span class="top_ticker_middle"></span>
<div class="pc_elements">
  <fieldset class="checkable">
    <span class="as_cp_checkbox"></span>
    <input type="hidden" name="pc_element_01" id="pc_element_01" value="yes">
    <label for="pc_element_01">Some text</label>
  </fieldset>
</div>

now: i need to append text from label to top_ticker_middle span after some click. I have many of this fieldsets in the list, and i should do this for specify, clicked element. Also i need to append this values one by one in the span top_ticker_middle. So i do this:

$('.pc_elements fieldset').live('click',function(){
    var text_label = $(this).children('label').text();
    $('.top_ticker_middle').empty().append(text_label);
});

something is wrong and not working, can you help me?

  • 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-15T13:51:41+00:00Added an answer on June 15, 2026 at 1:51 pm

    Replace:

    var text_label = $(this).children('label').text();
    $('.top_ticker_middle').empty().append(text_label);
    

    With:

    var text_label = $(this).find('label').text();
    $('.top_ticker_middle').html($('.top_ticker_middle').html() + text_label);
    

    I faced the same issue! 🙂

    Original Fiddle: http://jsfiddle.net/bAZnT/ (Actually this works!)

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

Sidebar

Related Questions

I have the following markup for my input fields: <div class=required> <label for=Name>Name <em>*</em></label>
I have this markup x 3: <div class=features> <span class=overlay><img src=img/webdesign.png /></span> <h2>Web Design</h2>
I have this markup: <div id=slider1> <div class=ui-slider ui-slider-horizontal ui-widget ui-widget-content ui-corner-all> <a style=left:
Suppose I have this html markup: <div id=wrapper> <pre class=highlight> $(function(){ // hide all
Having markup like this: <div class=foo> <div><span class=a1></span><a href=...>...</a></div> <div><span class=a2></span><a href=...>...</a></div> <div><span class=a1></span>some
I have the following markup; <div class=model-timeline> <p>Text</p> <div class=timeline> <div class=span-blank-5></div> <div class=time-span-1></div>
I have some message elements like this... <span class=error message>Whoops! Don't forget your name.</span>
Suppose I have this markup: <div id=#titles> <p>Intro text <span>text text</span> text text</p> <ul>
I have some markup that looks like this: <a href=# class=someButton> <span class=play>play</span> </a>
I have the following markup. <para><span class=bidi/><span class=ind/>1</para> I'm trying to achieve this... <para><span

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.