jquery find element with attribute name code example
Example 1: jquery selector attribute value starts with
$( "input[name^='news']" )
Example 2: jquery select by name attribute
$('[name="ElementNameHere"]').doStuff();
Example 3: jquery selector partial attribute
<!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>