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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T11:17:05+00:00 2026-06-08T11:17:05+00:00

I am working on a logic for checkboxes. Where if the checkbox is unticked,

  • 0

I am working on a logic for checkboxes. Where if the checkbox is unticked, It hides the created list item. An example of this is on jsFiddle I have the tick logic working, But what I’d like is the “Untick” logic to work.

I have given each li item a class, So basically looking to pair the two together to remove the list item. But just not having any luck.

Can anyone help me on extending this logic so that I show / hide the unticked li item, Otherwise I’m just left with a never ending list of items.

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-08T11:17:07+00:00Added an answer on June 8, 2026 at 11:17 am

    1) Use the change event for listening to checkboxes. If you use click, you ignore any state changes that come from keyboard interaction.

    2) Your current “if not checked” code is creating a NEW li and removing that (before it’s even entered the DOM) – presumably not what you meant.

    I’ve assumed you meant to remove CURRENT lis that have a class equal to the name attribute of the changed checkbox. See updated Fiddle:

    http://jsfiddle.net/qYtXX/9/

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

Sidebar

Related Questions

OK so I am working on some game logic, I have done a fair
This seemed to be working perfectly, I added a checkbox to my form so
I need some help with re-working the logic on this php code. What I'd
I have this login page managed in php. It contains several checkboxes, radiobuttons and
I have this layout: <LinearLayout android:layout_width=fill_parent android:layout_height=wrap_content android:layout_marginBottom=10dp android:gravity=center_vertical android:layout_marginLeft=10dp> <CheckBox android:id=@+id/screen_login_checkbox android:button=@drawable/login_screen_checkbox_image_selector android:layout_width=wrap_content
This seems something I shouldnt have to waste a question on, but I can't
I've got the logic working to append into my iframe from the parent this
I am working on a logic where I want user to be redirected to
Our team has recently been working on a logic and data layer for our
I am working in a Login page and teh logic is like -> try

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.