Avatar of Bruce Gust
Bruce Gust
Flag for United States of America

asked on 

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

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="http://code.jquery.com/jquery-1.10.0.min.js"></script>


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

$(document).ready(function() {

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


Open in new window

Doesn't work. what am I missing?

Avatar of undefined
Last Comment
Bruce Gust

8/22/2022 - Mon