asked on
<!DOCTYPE html>
<html lang="en">
<head>
<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>
</head>
<body>
Spouse <input type="checkbox" id="spouse_check">
<script>
$(document).ready(function() {
var $checkbox=$('input[id="spouse_check"]');
if($checkbox).prop('checked'))
{
alert("hello");
}
});
</script>
</body>
</html>