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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T23:54:11+00:00 2026-06-02T23:54:11+00:00

I am trying to do some article list, where you can select them using

  • 0

I am trying to do some article list, where you can select them using checkbox.
In case you are not sure to select or not, there’s option to click on header, and get more information about the article.

I have used this example. So where’s the problem ? I don’t want to expand articles that I select, just those where I click on header.

JQ script part is OK, because it works fine, it expands / collapses correctly, problem is or in CSS or in HTML, where to place checkbox to see it in header.

I have sample HTML:

     <div class="art_list">
     <div class="art_head"><div class="art-chk"><input type="checkbox"  name="reguser"  value="Deki" /></div>Artilk-1 </div>
     <div class="art_body">Artikl 1 ima sve</div>
     </div>

And this gives me checkbox in the header, but when I check it, it expands the article.

I have tried this also:

     <div class="art_list">
     <input type="checkbox"  class="art-chk" name="reguser" value="Deki" />
     <p class="art_head">Artikl-2 </p>  
 <div class="art_body">Artikl 2 ima sve</div>
     </div>

It hides checkbox in the header, and no matter that I’ve tried putting z-index for art-list, art-head, lower then art-check, I can’t see it.

Here is JS:

    function hideShowArticles(){
$(document).ready(function()
{
    //hide the all of the element with class msg_body
    $(".art_body").hide();
    //toggle the componenet with class msg_body
    $(".art_head").click(function()
    {
        $(this).next(".art_body").slideToggle(600);
    });
  });
}

So what am I missing ?

I need:
[X] Header

and that only click on “header” expands the article, click on checkbox, selects the article without expanding it. Click on header expands the article below checkbox and header, that remain above whole description.

  • 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-02T23:54:13+00:00Added an answer on June 2, 2026 at 11:54 pm

    Is this right?

    http://jsfiddle.net/chrismackie/S3rWC/

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

Sidebar

Related Questions

I'm currently trying to consume a list of strings from some XML using Apache
I am trying some things with JSON and PHP and there is something that
I'm using Eclipse with C++ plugins on my macbook, trying some practice projects to
I have a list of articles that have increasing ids associated with them. Some
I am using Dojo Editor tools for an article publishing page. I'm trying to
I'm trying to implement a polyline simplification algorithm. The original article can be found
I'm having some issues with the CSS hierarchy (not sure if it's proper to
I've trying to use the API for CapsuleCRM... http://capsulecrm.com/help/page/api_gettingstarted I've been reading some articles
Recently I was trying some practice programs in python and I came across this
I am trying some way to optimize following sql statement: exe_sql DELETE FROM tblEvent_type

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.