title: pass id and value to set of select input in react js
body: <p>i have this  set of select input that shows numbers  on intail load on select filed and then i want to change value based on the option also i want to pass a id to the post api called user.id</p>
  <pre><code>{
    data.map((user) =&gt; (
      &lt;select
        value={user.numberfromapi} // to show the number that is fecteched from api in intial load
        style={{ background: defaultcolor }}
        onChange={handleBackground(user.id ,value)} // i want to pass these 2 filds
      &gt;
        &lt;option value=&quot;1&quot;&gt; 1 &lt;/option&gt;
        &lt;option value=&quot;2&quot;&gt;2&lt;/option&gt;
        &lt;option value=&quot;3&quot;&gt;3&lt;/option&gt;
        &lt;option value=&quot;4&quot;&gt;4&lt;/option&gt;
      &lt;/select&gt;
    ));
  }
  
  </code></pre>