find option

by fabriutente

HTML

<head>
  <meta charset="utf-8">
  <title>selected demo</title>
  <style>
  div {
    color: red;
  }
  </style>
  <script src="https://code.jquery.com/jquery-1.10.2.js"></script>
</head>
<body>
 
<select name="garden" multiple="multiple">
  <option>Flowers</option>
  <option selected="selected">Shrubs</option>
  <option>Trees</option>
  <option selected="selected">Bushes</option>
  <option>Grass</option>
  <option>Dirt</option>
</select>
<div></div>
 
<script>
$('select').change(function(){
   $('select option:selected').click(function() {
       var option_selected = $(this).text();
       //now you need to find the div to show and use the .show function to display it
       }); 
});
</script>
 
</body>