We would like to know how to select all inputs that don't have the name 'n'.
<!-- w w w. j a v a2 s .c o m-->
<html>
<head>
<script type="text/javascript" src='http://code.jquery.com/jquery-1.5.2.js'></script>
<script type="text/javascript">
$(document).ready(function(){
$("input[name!='n']").val(" not n");
});
</script>
</head>
<body>
<input type="text" name="newsletter" value="Hot Fuzz" />
</body>
</html>
The code above is rendered as follows: