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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T11:11:55+00:00 2026-06-11T11:11:55+00:00

js/jQuery: $(‘input[type=checkbox]’).click(function(){ // Does not fire if I click a <input type=checkbox disabled=disabled />

  • 0

js/jQuery:

$('input[type=checkbox]').click(function(){
  // Does not fire if I click a <input type="checkbox" disabled="disabled" />
});

How do I make something happend in jQuery when someone clicks a disabled checkbox?

  • 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-11T11:11:56+00:00Added an answer on June 11, 2026 at 11:11 am

    Reading over the comment again regarding using readonly from JoãoSilva. You could use that and connect it with some logic in the click event.

    Using readonly gives you the disabled look, just like disabled does but it still lets you click it.

    Use readonly like this:

    <input type="checkbox" readonly="readonly">​
    

    Then in your script cancel the event if readonly is set.

    $('input[type=checkbox]').click(function() {
        var isReadOnly = $(this).attr("readonly") === undefined ? false : true;
    
        if (isReadOnly) {
            return false;
        }
    
        // other code never executed if readonly is true.
    });
    ​
    

    DEMO

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

Sidebar

Related Questions

Jquery did not carry out!!!I don't know why $(.other-edithion).click(function(){ var city = $(this).closest('#city'); if
jQuery(document).ready(function($) { $('input[type="text"]').live('focus', function() { if (this.value == 'someValue') { this.select(); } }); });
jQuery $(.theme-picker).click(function () { $('head').append('<link rel=stylesheet href= type=text/css media=screen id=theme_switcher/>'); }); Jasmine describe(style.switcher, function()
JQUERY <script type=text/javascript src=jquery-1.5.1.min.js></script> <script type=text/javascript> $('#aggiungi').live('click', function(){ var thisRow = $(this).parent().parent(); // clone
jQuery(function ($) { $('input.adud').on('click', function() { var thisdiv = $(this).parents('div').attr(id); var thisform = $(this).parents('form').attr(id);
Jquery does not work on the Internet explorer . However it runs on other
jQuery code: function ajaxsubmit(){ $.ajax({ url: /update, type: POST, dataType: html }).success(function(data) { $('#result').html(data);
Jquery: <script type=text/javascript src=http://code.jquery.com/jquery-1.7.2.min.js></script> <script type=text/javascript src=js/timeago.js ></script> $(document).ready(function(){ jQuery(abbr.timeago).timeago(); }); html: <abbr class=timeago
jQuery code add new virtual object .add to object .main $(document).ready(function(){ $('.main').on('click', '.add', function
jQuery(document).ready(function(){ $(#submitButton).click(function () { if ( $(#formToSubmit).validationEngine('validate') == true) { $(#formToSubmit).submit(); } }); I

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.