troubleshooting Question

How can I check the "checked" status of a checkbox in JQuery?

Avatar of Bruce Gust
Bruce GustFlag for United States of America asked on
7 Comments1 Solution160 ViewsLast Modified:
I've been at this for a while to no avail.

Seems like this should be easy...

Here's what I'm doing:

<!DOCTYPE html>
<html lang="en">
<title>JQuery Example</title>
<link href="css/stylesheet.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src=""></script>


Spouse <input type="checkbox" id="spouse_check">

$(document).ready(function() {

	var $checkbox=$('input[id="spouse_check"]');


Doesn't work. what am I missing?
Jayadev Nair
Sr.Software Engineer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros