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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:17:11+00:00 2026-06-17T17:17:11+00:00

Specifically, an in memory dom of input type checkbox does not receive the ‘checked’

  • 0

Specifically, an in memory dom of input type checkbox does not receive the ‘checked’ attribute (or any other checked indicator) in FireFox.

The commented line can be uncommented to see the test pass, but currently you will see the test fail in firefox.

http://jsfiddle.net/mE3xb/2/

var cb = $('<input type="checkbox" />')
//var cb = $('input'); 
if (cb.is(':checked')) alert("checkbox says it's already checked"); 
cb.click(); 
if (cb.is(':checked')) alert("checkbox clicked correctly!"); 
else alert("fail!"); 

Am I doing non-standard things? Any advice? I’m essentially relying on the jQuery .click to actually check my checkbox in the UI (and I don’t want to use .attr, .prop, .val because it will break my nice encapsulation that I got going on.)

  • 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-17T17:17:12+00:00Added an answer on June 17, 2026 at 5:17 pm

    Since you are using jQuery 1.4.3, it looks like your best bet will be:

    cb[0].setAttribute('checked', 'checked'); // plain old vanilla JS
    

    jsFiddle Demo – tested in FireFox & Chrome & IE8

    .click() doesn’t work in many strange situations in Firefox (it is something inherently wrong/different in that browser). I would assume because it isn’t actually available on the DOM yet, so it doesn’t know where this event would be. This is one of the many reasons things like .prop() exist, etc.

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

Sidebar

Related Questions

Specifically, Python is unable to find SQL Alchemy. Running easy_install does not help, as
I am specifically talking about physical RAM, I do not want virtual memory stats
I would like to better understand my application and specifically its memory footprint. I
How can I search the memory state of an process in Linux? Specifically I
So Instruments tells me I have three memory leaks originating in this method (specifically,
How do I get the amount of physical memory, consumed by the DataSource (specifically
I am looking at the performance of OpenMP program, specifically cache and memory performance.
I'm looking for a good JavaScript Memory profiler, specifically one that targets IE. And
Can anyone recommend a quality C++ memory debugging API or software for Windows(specifically, one
I have an apparent memory leak in a hadoop program I'm running. Specifically 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.