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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:09:07+00:00 2026-05-29T05:09:07+00:00

This drives me mad. I just can’t understand it. I wrote a filter-function based

  • 0

This drives me mad. I just can’t understand it.

I wrote a filter-function based on checkboxes and clicking on their labels. I’m checking the ‘checked’ state of checkboxes and show mathed elements of the list (the rest elements are hidden). I use 3rdparty plugin that stylizes checkboxes (cut from example) and makes checkboxes checked while other onClick event does the filtering.

The problem is that after ‘checked’ state is successfully set inside a callback-function it "suddenly" becomes reset! I can’t understand why that happens.

I implemented the base logic (without stylizing) here: http://jsfiddle.net/3Xtuh/13/
and ask all to help me solve this, please.

  • 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-05-29T05:09:08+00:00Added an answer on May 29, 2026 at 5:09 am

    The problem is that you are invoking the click event manually, and then when your function is done running, the default click event is invoked.

    By passing the event variable to your click handler and calling event.preventDefault(); fixes this behavior.

    See example here: http://jsfiddle.net/3Xtuh/14/

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

Sidebar

Related Questions

I have this piece of code that drives me mad. FUNCTION DiskInDrive(CONST DriveNumber: Byte):
This problem has driven me mad for over a day now. I can create
This drives me crazy, it should be easy but I can't... I need to
This problem drives me nuts, because the max_execution_time in the php.ini and in the
I happened across this article about hardware based hard drive encryption and realized that
Is this possible? I am creating a single base factory function to drive factories
Trying to do a simple mongodb query that drives me mad.... I have the
This drives me crazy...I am trying to build a youtube player with flash and
This change from mootools drives me crazy. HTML <tr class=teamicon> <td style=text-align: center; width=100%
I have this script to automatically map network drives: On Error Resume Next Set

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.