Filtre tous les éléments qui répondent à la sélection.
Depuis jQuery 1.3, not supporte également les selecteurs complexes : not(div a) et :not(div,a), par exemple.
Version: disponible depuis la version 1.0 de JQuery
Valeur de retour: tableau d'éléments
$("input:not(:checked) + span").css("background-color", "yellow");
$("input").attr("disabled", "disabled");
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("input:not(:checked) + span").css("background-color", "yellow");
$("input").attr("disabled", "disabled");
});
</script>
<style>
</style>
</head>
<body>
<div>
<input type="checkbox" name="a" />
<span>Mary</span>
</div>
<div>
<input type="checkbox" name="b" />
<span>lcm</span>
</div>
<div>
<input type="checkbox" name="c" checked="checked" />
<span>Peter</span>
</div>
</body>
</html>