title: React: get value from a select field in a DOM node
body: <p>I'm a novice back end developer and I've been tasked with fixing a feature and I'm stuck on the react portion.  I can't seem to find the appropriate syntax to get a value from a select component and that's pretty much my whole issue.  I've looked at lots of other posts and the react docs and nothing I'm trying is working.  An example of markup is as follows(There's lots of select fields in this view):</p>
  
  <pre><code>   &lt;div className="grid-content noscroll medium-6 small-12" style={{overflow: 'visible'}}&gt;
        &lt;div className="grid-content"&gt;&lt;label&gt;Program&lt;/label&gt;&lt;/div&gt;
        &lt;div className="grid-content" style={{overflow: 'visible'}}&gt;
           &lt;Select
              key="program_key"
              ref="program_key"
              multi={false}
              value={ jobData &amp;&amp; jobData.program_key ? jobData.program_key : null}
              options={programOptions}
              onChange={this.changeField.bind(null, 'program_key')}
            /&gt;
        &lt;/div&gt;
     &lt;/div&gt;
  </code></pre>
  
  <p>Then the event handler is as follows:</p>
  
  <pre><code>changeField: function(propName) {
    var field = this.refs[propName].getDOMNode();
    console.log(field.input);
    console.log(field);
    var nextProp = field.value.length &gt; 0 ? field.value : null;
    var job = Object.assign({}, this.state.job);
    job.payload.data[propName] = nextProp;
  
    if(propName === 'user_id') {
      this.changeUserId = true
    }
  
    this.setState({
      job: job,
      updated: false
    });
  }
  </code></pre>
  
  <p>The result of console.log(field) is:</p>
  
  <pre><code>&lt;div class="Select is-searchable has-value" data-reactid=".0.0.2.0.1.0.1.1.0.1.1.$program_key"&gt;
  &lt;input type="hidden" value="NHDS" data-reactid=".0.0.2.0.1.0.1.1.0.1.1.$program_key.0"&gt;
  </code></pre>
  
  <p>It goes on from there but the 'value="NHDS"' is the piece that I need and I cannot figure out how to get to it for the life of me.  Please let me know if I can clarify or improve this question.  Thanks in advance.</p>