I’m trying to make a simple dropdown menu for my WordPress shop (WooCommerce) – https://shop.sin.org.pl/sklep/ .

The problem is, while the dropdown menu does show up, the image it should return does not. Does anyone know how to force show it right next to the dropdown?

Code: https://pastebin.com/2ZcyKAh8

<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<style type="text/css">
    color: #000000;
    padding: 0px;
    display: none;
    margin-top: 0px;
    background-color: #ffffff; 
    text-align: center;

<script type="text/javascript" src="http://code.jquery.com/jquery.min.js">            </script>
<script type="text/javascript">
        var optionValue = $(this).attr("value");
            $(".box").not("." + optionValue).hide();
            $("." + optionValue).show();
        } else{
        <option>Wybierz substancje</option>
        <option value="1">LSD</option>
<div class="1 box">
    <a href="http://sin.org.pl" target="_blank">
        <img src="https://s14.postimg.org/s15q8k3u9/Untitled-1.jpg" />

Read more here: JQuery dropdown menu not working on a wordpress WooCommerce shop page


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: