Check out example codes for "jquery selector attribute value starts with". It will help you in understanding the concepts better.

Code Example 1

$( "input[name^='news']" ) //name starts with news

Code Example 2

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>attributeStartsWith demo</title>
  <script src="https://code.jquery.com/jquery-3.5.0.js"></script>
</head>
<body>
 
<input name="newsletter">
<input name="milkman">
<input name="newsboy">
 
<script>
$( "input[name^='news']" ).val( "news here!" );
</script>
 
</body>
</html>

Learn ReactJs, React Native from akashmittal.com