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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:43:56+00:00 2026-05-25T20:43:56+00:00

I am using jQuery and jQuery UI and i am trying to read a

  • 0

I am using jQuery and jQuery UI and i am trying to read a checkbox state through the addition of the “aria-pressed” property that jQuery UI Button toggle between false and true.

$('.slideButton').live('click', function() {

alert($(this).attr('aria-pressed'));

});

This code however seems to read the aria-pressed before jQuery UI has updated aria-pressed. So i unreliable values. Can i schedule it to execute after the UI has updated or can i make it wait?

Live example here!

  • 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-25T20:43:56+00:00Added an answer on May 25, 2026 at 8:43 pm

    Can’t you add a listener to the actual checkbox behind the label or span?

    $("#days_list li div div div input[type='checkbox']").change(function(){
         alert("Someone just clicked checkbox with id"+$(this).attr("id"));
    });
    

    This should work since, once you click the label, you change the value in the checkbox.


    Alright, I’ve composed a live example for you that demonstrates the general idea of how it works, and how you retrieve the status of the checkbox.

    $("#checkbox_container input").change(function(){
        if($(this).is(":checked")) alert("Checked!");
        else alert("Unchecked!");
    });
    

    In your case, since the checkbox is added dynamically by JQuery you have to use the live event, but it is basically the same thing

    $("#checkbox_container input").live("changed"....
    

    Here’s an example with some additional scripting and checking, mostly for demonstrative purposes.

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

Sidebar

Related Questions

I'm trying to create a custom accordion using jquery, have read through quite a
I want to read multiple RSS feeds using jQuery. I'm trying to write a
using jquery ui 1.8 trying autocomplete Everything works apart from that the ui-menu isn't
I'm trying to post to a form using jQuery and read the results of
I am trying to read a text file using jquery, like this: // LOAD
What I am not trying to do: Simply read XML in IE using jQuery.
I am trying to implement a slideshow using jQuery I have a button called
I have 2 dropdown lists on my webform and using jquery trying to filter/reset
Using jQuery I am trying to set focus for (CSS purposes) to a particular
I have a simple html block like: <span id=replies>8</span> Using jquery I'm trying to

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.