title: How to get the id of the selected item from a dropdown list?
body: <p>I can get the selected item's value (name), but the is an id and url fro each item beside the name. How can I get those?</p>
  <pre><code>&lt;select
  class = &quot;form-control&quot;
  onChange = {
          this.handleSelect
      } &gt;
      {
          allMemesImg.map(item =&gt; ( &lt;
              option key = {
                  item.id
              } &gt; {
                  item.name
              } &lt;
              /option&gt;
          ))
      } 
   &lt;/select&gt;
  
  
  
  
  handleSelect = event =&gt; {
      this.setState({
          value: event.target.value,
      });
      alert(event.target.value);
  }
  </code></pre>