<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script type="text/javascript" src="jquery-1.4.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('form input:checkbox').click(function() {
var m = $('#maid').attr('value');
var o = $(this).attr('id');
alert('m = '+m+' and o = '+o);
if($(this).is(':checked')){
alert("Its checked!");
// $.ajax({
// type:'POST',
// url:'include/values.php',
// data:'make='+m+'&option='+o
// });
}
});
});
</script>
</head>
<body>
<form>
<label class="assOption" for="ck-option-2"><input name="ck-option-2" id="ck-option-2" value="2" type="checkbox"> Climate Control</label>
<label class="assOption" for="ck-option-3"><input name="ck-option-3" id="ck-option-3" value="3" type="checkbox"> Climate Control 3</label>
</form>
</body>
</html>
|