Select input name negation
Description
The following code shows how to select input element that don't have the name 'n' in attribute name.
Example
<html>
<head>
<script
src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {<!-- ww w . ja v a2 s .co m-->
$("input[name!='n']").val(" not n");
});
</script>
</head>
<body>
<input type="text" name="newsletter" value="Hot Fuzz" />
</body>
</html>