Detecting a click in a checkbox with jQuery
A simple script to detect when a checkbox is clicked. What you do with once you’ve detected the click is up to you.
<html>
<head>
<script src=”http://www.google.com/jsapi”></script>
<script>
google.load(”jquery”, “1.3.2″);
google.setOnLoadCallback(function() {
$(’#agree’).click( function() {
if($(this).attr(’checked’)){
alert(’checked’);
}
else{
[...]