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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T11:36:59+00:00 2026-05-19T11:36:59+00:00

When you mark/unmark the checkbox I want it to window.location = index.php?mark=1 if it’s

  • 0

When you mark/unmark the checkbox I want it to window.location = index.php?mark=1 if it’s marked, and if you click and it gets unmarked it should be mark=0

  • 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-19T11:37:00+00:00Added an answer on May 19, 2026 at 11:37 am
    $('input:checkbox').click(function(){
      window.location='/index.php?mark=' + ($(this).attr('checked') ? 1 : 0);
    });
    

    Should do the trick, but note that means it’s going to cause a page reload between checks.

    EDIT or as William mentioned, you can bind to .change() as well.

    EDITv2 Working example: http://www.jsfiddle.net/T5CaC/

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

Sidebar

Related Questions

What Windows API function should I use to mark/unmark files/folders as protected operating system
I was asked to mark as checked the checkbox on the table line click,
The mark in Vim takes you to your last cursor position. I want to
I have implemented (from here- horizontal swipe on listview ) swipe gesture to mark-unmark
I want to mark checkboxes if they have been selected via existing data from
Q: When a document is marked/unmarked for deletion, and this document is a parent
i want to mark a method as obsolete, but Delphi 5 doesn't have such
How should I mark input fields as invalid (i.e. color, background-color, border, etc.) Currently,
When you mark something with the Autowire annotation, you are saying you want this
Possible Duplicate: Question mark equals, doesn't work on php <?php $a=123; ?> <?=$a?> This

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.