<!DOCTYPE html> <html> <head> <title></title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <script language="javascript" src="https://code.jquery.com/jquery-3.1.1.min.js"></script> <style type="text/css"> /* Code CSS Here */ </style> <script language="javascript"> $(document).ready(function(){ $( "input[name|='chelsea']" ).val( "OK!" ); }); </script> </head> <body> <input name="chelsea"> <input name="chelseafc"> <input name="chelsea champion"> <input name="chelsea-fc"> </body> </html>