Finds all inputs that don't have the name 'n'
<html> <head> <script type="text/javascript" src="js/jquery-1.3.2.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("input[name!='n']").val(" not n"); }); </script> </head> <body> <body> <input type="text" name="newsletter" value="Hot Fuzz" /> </body> </html>