JSFiddle - React, Tailwind, and code Playground

HTML

<div class="toolbar-wrapper">
              <div>
                <div>
                  <label>Product Count</label>
                  <div class="select-group">
                    <select>
                      <option value="4 products" selected="selected">4 products</option>
                      <option value="6 products">6 products</option>
                      <option value="8 products">8 products</option>
                    </select>
                  </div>
                </div>

                <div>4 products</div>
              </div>
            </div>

JavaScript

var content = $( "div:gt(5)" );
$( "select" ).on( "change", function( event ) {
  console.log(event.target.value);
  $('.toolbar-wrapper > div > div:nth-child(2)').html(event.target.value);
});