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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T06:52:21+00:00 2026-06-18T06:52:21+00:00

Take look at this example http://jsfiddle.net/hKASH/ <div id=a> <div class=parent> <span>one</span> <span>two</span> <span>three</span> </div>

  • 0

Take look at this example http://jsfiddle.net/hKASH/

    <div id="a">
    <div class="parent">
        <span>one</span>
        <span>two</span>
        <span>three</span>
    </div>
    <div class="parent">
        <span>one</span>
        <span>two</span>
    </div>
</div>

$('#a .parent').children().slice(1).css('float', 'right');

I want to select children groups separately for each parent, “one” must stay left, others must go to right.

Now it looks like I have children() with 5 elements, I want to have 2 groups with 3 and 2 elements.

Thanks

  • 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-18T06:52:23+00:00Added an answer on June 18, 2026 at 6:52 am

    use each() function to loop through each parent

    try this

     $('#a .parent').each(function(){
       $(this).children().slice(1).css('float', 'right');
     });
    

    fiddle here

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

Sidebar

Related Questions

If you take a look at this jsfiddle example: http://jsfiddle.net/2YbpZ/ You can see that
Please take a look at this example. http://jsfiddle.net/LdeWK/2/ I want to know how to
Hi, Pleas take look at this example : http://jsfiddle.net/snowman/Hne3h/1/ If you hover over the
Please take a look at this example in Chrome browser: http://jsfiddle.net/ymzTB/ <form> <input required
http://jsfiddle.net/nXqd/qC2Ya/6/ Take a look at the jsfiddle. When I enter wrong data in two
Please take a look to this simple jsfiddle: http://jsfiddle.net/perikut/9qUVW/2/ (sorry if using Firefox, I
Please take a look at this fiddle: http://jsfiddle.net/d3uc9/4/ I have a problem with this,
Well Im stucked at this point.please take a look at this http://jsfiddle.net/karthik64/5jhgF/3/ Okay first
Take a look at this example: http://www.extjs.com/deploy/dev/examples/multiselect/multiselect-demo.html On it, there are components rendered against
Take a look at this example here: http://denise.brixwork.com/showlisting/1/8297-Valley-Drive-Alpine-Meadows-Whistler-denise-brown-real-estate And the red tables under Specifications

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.