JSFiddle - React, Tailwind, and code Playground

by icntfan

HTML

<!DOCTYPE html>
<html>
<head>
  <style>
  div { color:red; }
  </style>
  <script src="http://code.jquery.com/jquery-latest.js"></script>
</head>
<body>
  <select name="bahce" multiple="multiple">

    <option>Çiçekler</option>
    <option selected="selected">Çalılıklar</option>
    <option>Ağaçlar</option>
    <option selected="selected">Otluklar</option>

    <option>Çimler</option>
    <option>Çamur</option>
  </select>
  <div></div>
<script>

    $("select").change(function () {
          var str = "";
          $("select option:selected").each(function () {
                str += $(this).text() + " ";
              });
          $("div").text(str);
        })
        .trigger('change');
</script>

</body>
</html>