JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" name="test1.value">
<input type="text" name="test2.value">
<input type="text" name="testValue">

JavaScript

jQuery("input[name$='value']").val("toto")