How to position an image according to the value of a select

0

Greetings, I'm making an application and I need to know if having an image I can move it to a certain position according to the value of a select.

<div class="col-sm-2">
<select class="form-control" id="seleccion" onchange="cambia(this.options[this.selectedIndex].value)">
      <option value="./images/caries.png">Caries</option>
      <option value="./images/extraccion.png">Ausente</option>
      <option value="./images/sellanteboca.png">Sellante en boca</option>
</select>
<img id="im"  width="25" height="25" style="position: relative;left: -6px;bottom: 145px;"> 
               
</div>
            
 With this code, I will load the image, but I need that, depending on an option of another select, to put the image that was loaded in a certain position, it is for an odontogram that I am doing.     
asked by Pedro 21.09.2017 в 22:35
source

0 answers