Description: Selects elements that have the specified attribute with a value ending exactly with a given string. The comparison is case sensitive.
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>css demo</title> <script src="//code.jquery.com/jquery-1.10.2.js"></script> </head> <body> <input name="newsletter"> <input name="milkman"> <input name="jobletter"> <script> $( "input[name$='letter']" ).val( "a letter" ); </script> </body> </html>